Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::DisplayListStreamDispatcher Class Referencefinal

#include <display_list_testing.h>

Inheritance diagram for flutter::testing::DisplayListStreamDispatcher:
flutter::DlOpReceiver

Public Member Functions

 DisplayListStreamDispatcher (std::ostream &os, int cur_indent=2, int indent=2)
 
void setAntiAlias (bool aa) override
 
void setDrawStyle (DlDrawStyle style) override
 
void setColor (DlColor color) override
 
void setStrokeWidth (SkScalar width) override
 
void setStrokeMiter (SkScalar limit) override
 
void setStrokeCap (DlStrokeCap cap) override
 
void setStrokeJoin (DlStrokeJoin join) override
 
void setColorSource (const DlColorSource *source) override
 
void setColorFilter (const DlColorFilter *filter) override
 
void setInvertColors (bool invert) override
 
void setBlendMode (DlBlendMode mode) override
 
void setMaskFilter (const DlMaskFilter *filter) override
 
void setImageFilter (const DlImageFilter *filter) override
 
void save () override
 
void saveLayer (const SkRect &bounds, const SaveLayerOptions options, const DlImageFilter *backdrop) override
 
void restore () override
 
void translate (SkScalar tx, SkScalar ty) override
 
void scale (SkScalar sx, SkScalar sy) override
 
void rotate (SkScalar degrees) override
 
void skew (SkScalar sx, SkScalar sy) override
 
void transform2DAffine (SkScalar mxx, SkScalar mxy, SkScalar mxt, SkScalar myx, SkScalar myy, SkScalar myt) override
 
void transformFullPerspective (SkScalar mxx, SkScalar mxy, SkScalar mxz, SkScalar mxt, SkScalar myx, SkScalar myy, SkScalar myz, SkScalar myt, SkScalar mzx, SkScalar mzy, SkScalar mzz, SkScalar mzt, SkScalar mwx, SkScalar mwy, SkScalar mwz, SkScalar mwt) override
 
void transformReset () override
 
void clipRect (const SkRect &rect, ClipOp clip_op, bool is_aa) override
 
void clipRRect (const SkRRect &rrect, ClipOp clip_op, bool is_aa) override
 
void clipPath (const SkPath &path, ClipOp clip_op, bool is_aa) override
 
void drawColor (DlColor color, DlBlendMode mode) override
 
void drawPaint () override
 
void drawLine (const SkPoint &p0, const SkPoint &p1) override
 
void drawDashedLine (const DlPoint &p0, const DlPoint &p1, DlScalar on_length, DlScalar off_length) override
 
void drawRect (const SkRect &rect) override
 
void drawOval (const SkRect &bounds) override
 
void drawCircle (const SkPoint &center, SkScalar radius) override
 
void drawRRect (const SkRRect &rrect) override
 
void drawDRRect (const SkRRect &outer, const SkRRect &inner) override
 
void drawPath (const SkPath &path) override
 
void drawArc (const SkRect &oval_bounds, SkScalar start_degrees, SkScalar sweep_degrees, bool use_center) override
 
void drawPoints (PointMode mode, uint32_t count, const SkPoint points[]) override
 
void drawVertices (const DlVertices *vertices, DlBlendMode mode) override
 
void drawImage (const sk_sp< DlImage > image, const SkPoint point, DlImageSampling sampling, bool render_with_attributes) override
 
void drawImageRect (const sk_sp< DlImage > image, const SkRect &src, const SkRect &dst, DlImageSampling sampling, bool render_with_attributes, SrcRectConstraint constraint) override
 
void drawImageNine (const sk_sp< DlImage > image, const SkIRect &center, const SkRect &dst, DlFilterMode filter, bool render_with_attributes) override
 
void drawAtlas (const sk_sp< DlImage > atlas, const SkRSXform xform[], const SkRect tex[], const DlColor colors[], int count, DlBlendMode mode, DlImageSampling sampling, const SkRect *cull_rect, bool render_with_attributes) override
 
void drawDisplayList (const sk_sp< DisplayList > display_list, SkScalar opacity) override
 
void drawTextBlob (const sk_sp< SkTextBlob > blob, SkScalar x, SkScalar y) override
 
void drawTextFrame (const std::shared_ptr< impeller::TextFrame > &text_frame, SkScalar x, SkScalar y) override
 
void drawShadow (const SkPath &path, const DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr) override
 
- Public Member Functions inherited from flutter::DlOpReceiver
virtual bool PrefersImpellerPaths () const
 
virtual void clipPath (const CacheablePath &cache, ClipOp clip_op, bool is_aa)
 
virtual void drawPath (const CacheablePath &cache)
 
virtual void drawShadow (const CacheablePath &cache, const DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr)
 
virtual void setAntiAlias (bool aa)=0
 
virtual void setDrawStyle (DlDrawStyle style)=0
 
virtual void setColor (DlColor color)=0
 
virtual void setStrokeWidth (float width)=0
 
virtual void setStrokeMiter (float limit)=0
 
virtual void setStrokeCap (DlStrokeCap cap)=0
 
virtual void setStrokeJoin (DlStrokeJoin join)=0
 
virtual void setColorSource (const DlColorSource *source)=0
 
virtual void setColorFilter (const DlColorFilter *filter)=0
 
virtual void setInvertColors (bool invert)=0
 
virtual void setBlendMode (DlBlendMode mode)=0
 
virtual void setMaskFilter (const DlMaskFilter *filter)=0
 
virtual void setImageFilter (const DlImageFilter *filter)=0
 
virtual void save ()=0
 
virtual void save (uint32_t total_content_depth)
 
virtual void saveLayer (const SkRect &bounds, const SaveLayerOptions options, const DlImageFilter *backdrop=nullptr)=0
 
virtual void saveLayer (const SkRect &bounds, const SaveLayerOptions &options, uint32_t total_content_depth, DlBlendMode max_content_blend_mode, const DlImageFilter *backdrop=nullptr)
 
virtual void restore ()=0
 
virtual void saveLayer (const SkRect *bounds, const SaveLayerOptions options, const DlImageFilter *backdrop=nullptr) final
 
virtual void translate (SkScalar tx, SkScalar ty)=0
 
virtual void scale (SkScalar sx, SkScalar sy)=0
 
virtual void rotate (SkScalar degrees)=0
 
virtual void skew (SkScalar sx, SkScalar sy)=0
 
virtual void transform2DAffine (SkScalar mxx, SkScalar mxy, SkScalar mxt, SkScalar myx, SkScalar myy, SkScalar myt)=0
 
virtual void transformFullPerspective (SkScalar mxx, SkScalar mxy, SkScalar mxz, SkScalar mxt, SkScalar myx, SkScalar myy, SkScalar myz, SkScalar myt, SkScalar mzx, SkScalar mzy, SkScalar mzz, SkScalar mzt, SkScalar mwx, SkScalar mwy, SkScalar mwz, SkScalar mwt)=0
 
virtual void transformReset ()=0
 
virtual void clipRect (const SkRect &rect, ClipOp clip_op, bool is_aa)=0
 
virtual void clipRRect (const SkRRect &rrect, ClipOp clip_op, bool is_aa)=0
 
virtual void clipPath (const SkPath &path, ClipOp clip_op, bool is_aa)=0
 
virtual void drawColor (DlColor color, DlBlendMode mode)=0
 
virtual void drawPaint ()=0
 
virtual void drawLine (const SkPoint &p0, const SkPoint &p1)=0
 
virtual void drawDashedLine (const DlPoint &p0, const DlPoint &p1, DlScalar on_length, DlScalar off_length)=0
 
virtual void drawRect (const SkRect &rect)=0
 
virtual void drawOval (const SkRect &bounds)=0
 
virtual void drawCircle (const SkPoint &center, SkScalar radius)=0
 
virtual void drawRRect (const SkRRect &rrect)=0
 
virtual void drawDRRect (const SkRRect &outer, const SkRRect &inner)=0
 
virtual void drawPath (const SkPath &path)=0
 
virtual void drawArc (const SkRect &oval_bounds, SkScalar start_degrees, SkScalar sweep_degrees, bool use_center)=0
 
virtual void drawPoints (PointMode mode, uint32_t count, const SkPoint points[])=0
 
virtual void drawVertices (const DlVertices *vertices, DlBlendMode mode)=0
 
virtual void drawImage (const sk_sp< DlImage > image, const SkPoint point, DlImageSampling sampling, bool render_with_attributes)=0
 
virtual void drawImageRect (const sk_sp< DlImage > image, const SkRect &src, const SkRect &dst, DlImageSampling sampling, bool render_with_attributes, SrcRectConstraint constraint=SrcRectConstraint::kFast)=0
 
virtual void drawImageNine (const sk_sp< DlImage > image, const SkIRect &center, const SkRect &dst, DlFilterMode filter, bool render_with_attributes)=0
 
virtual void drawAtlas (const sk_sp< DlImage > atlas, const SkRSXform xform[], const SkRect tex[], const DlColor colors[], int count, DlBlendMode mode, DlImageSampling sampling, const SkRect *cull_rect, bool render_with_attributes)=0
 
virtual void drawDisplayList (const sk_sp< DisplayList > display_list, SkScalar opacity=SK_Scalar1)=0
 
virtual void drawTextBlob (const sk_sp< SkTextBlob > blob, SkScalar x, SkScalar y)=0
 
virtual void drawTextFrame (const std::shared_ptr< impeller::TextFrame > &text_frame, SkScalar x, SkScalar y)=0
 
virtual void drawShadow (const SkPath &path, const DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr)=0
 

Additional Inherited Members

- Static Public Attributes inherited from flutter::DlOpReceiver
static constexpr int kMaxDrawPointsCount = ((1 << 29) - 1)
 
- Protected Types inherited from flutter::DlOpReceiver
using ClipOp = DlCanvas::ClipOp
 
using PointMode = DlCanvas::PointMode
 
using SrcRectConstraint = DlCanvas::SrcRectConstraint
 

Detailed Description

Definition at line 78 of file display_list_testing.h.

Constructor & Destructor Documentation

◆ DisplayListStreamDispatcher()

flutter::testing::DisplayListStreamDispatcher::DisplayListStreamDispatcher ( std::ostream &  os,
int  cur_indent = 2,
int  indent = 2 
)
inlineexplicit

Definition at line 80 of file display_list_testing.h.

83 : os_(os), cur_indent_(cur_indent), indent_(indent) {}

Member Function Documentation

◆ clipPath()

void flutter::testing::DisplayListStreamDispatcher::clipPath ( const SkPath path,
ClipOp  clip_op,
bool  is_aa 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 754 of file display_list_testing.cc.

755 {
756 startl() << "clipPath("
757 << path << ", "
758 << clip_op << ", "
759 << "isaa: " << is_aa
760 << ");" << std::endl;
761}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57

◆ clipRect()

void flutter::testing::DisplayListStreamDispatcher::clipRect ( const SkRect rect,
ClipOp  clip_op,
bool  is_aa 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 737 of file display_list_testing.cc.

738 {
739 startl() << "clipRect("
740 << rect << ", "
741 << clip_op << ", "
742 << "isaa: " << is_aa
743 << ");" << std::endl;
744}
sk_sp< SkBlender > blender SkRect rect
Definition: SkRecords.h:350

◆ clipRRect()

void flutter::testing::DisplayListStreamDispatcher::clipRRect ( const SkRRect rrect,
ClipOp  clip_op,
bool  is_aa 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 745 of file display_list_testing.cc.

747 {
748 startl() << "clipRRect("
749 << rrect << ", "
750 << clip_op << ", "
751 << "isaa: " << is_aa
752 << ");" << std::endl;
753}
SkRRect rrect
Definition: SkRecords.h:232

◆ drawArc()

void flutter::testing::DisplayListStreamDispatcher::drawArc ( const SkRect oval_bounds,
SkScalar  start_degrees,
SkScalar  sweep_degrees,
bool  use_center 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 808 of file display_list_testing.cc.

811 {
812 startl() << "drawArc("
813 << oval_bounds << ", "
814 << start_degrees << ", "
815 << sweep_degrees << ", "
816 << "use_center: " << use_center
817 << ");" << std::endl;
818}

◆ drawAtlas()

void flutter::testing::DisplayListStreamDispatcher::drawAtlas ( const sk_sp< DlImage atlas,
const SkRSXform  xform[],
const SkRect  tex[],
const DlColor  colors[],
int  count,
DlBlendMode  mode,
DlImageSampling  sampling,
const SkRect cull_rect,
bool  render_with_attributes 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 873 of file display_list_testing.cc.

881 {
882 startl() << "drawAtlas(" << atlas.get() << ", ";
883 out_array("xforms", count, xform) << ", ";
884 out_array("tex_coords", count, tex) << ", ";
885 out_array("colors", count, colors) << ", "
886 << mode << ", " << sampling << ", cull: " << cull_rect << ", "
887 << "with attributes: " << render_with_attributes
888 << ");" << std::endl;
889}
int count
Definition: FontMgrTest.cpp:50
T * get() const
Definition: SkRefCnt.h:303
sk_sp< const SkImage > atlas
Definition: SkRecords.h:331
PODArray< SkColor > colors
Definition: SkRecords.h:276
SkSamplingOptions sampling
Definition: SkRecords.h:337
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
Definition: switches.h:228

◆ drawCircle()

void flutter::testing::DisplayListStreamDispatcher::drawCircle ( const SkPoint center,
SkScalar  radius 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 793 of file display_list_testing.cc.

794 {
795 startl() << "drawCircle(" << center << ", " << radius << ");" << std::endl;
796}

◆ drawColor()

void flutter::testing::DisplayListStreamDispatcher::drawColor ( DlColor  color,
DlBlendMode  mode 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 763 of file display_list_testing.cc.

763 {
764 startl() << "drawColor("
765 << color << ", "
766 << mode
767 << ");" << std::endl;
768}
DlColor color

◆ drawDashedLine()

void flutter::testing::DisplayListStreamDispatcher::drawDashedLine ( const DlPoint p0,
const DlPoint p1,
DlScalar  on_length,
DlScalar  off_length 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 776 of file display_list_testing.cc.

779 {
780 startl() << "drawDashedLine("
781 << p0 << ", "
782 << p1 << ", "
783 << on_length << ", "
784 << off_length
785 << ");" << std::endl;
786}

◆ drawDisplayList()

void flutter::testing::DisplayListStreamDispatcher::drawDisplayList ( const sk_sp< DisplayList display_list,
SkScalar  opacity 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 890 of file display_list_testing.cc.

891 {
892 startl() << "drawDisplayList("
893 << "ID: " << display_list->unique_id() << ", "
894 << "bounds: " << display_list->bounds() << ", "
895 << "opacity: " << opacity
896 << ");" << std::endl;
897}

◆ drawDRRect()

void flutter::testing::DisplayListStreamDispatcher::drawDRRect ( const SkRRect outer,
const SkRRect inner 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 800 of file display_list_testing.cc.

801 {
802 startl() << "drawDRRect(outer: " << outer << ", " << std::endl;
803 startl() << " inner: " << inner << ");" << std::endl;
804}

◆ drawImage()

void flutter::testing::DisplayListStreamDispatcher::drawImage ( const sk_sp< DlImage image,
const SkPoint  point,
DlImageSampling  sampling,
bool  render_with_attributes 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 837 of file display_list_testing.cc.

840 {
841 startl() << "drawImage(" << image.get() << "," << std::endl;
842 startl() << " " << point << ", "
843 << sampling << ", "
844 << "with attributes: " << render_with_attributes
845 << ");" << std::endl;
846}
sk_sp< const SkImage > image
Definition: SkRecords.h:269

◆ drawImageNine()

void flutter::testing::DisplayListStreamDispatcher::drawImageNine ( const sk_sp< DlImage image,
const SkIRect center,
const SkRect dst,
DlFilterMode  filter,
bool  render_with_attributes 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 861 of file display_list_testing.cc.

865 {
866 startl() << "drawImageNine(" << image.get() << "," << std::endl;
867 startl() << " center: " << center << "," << std::endl;
868 startl() << " dst: " << dst << "," << std::endl;
869 startl() << " " << filter << ", "
870 << "with attributes: " << render_with_attributes
871 << ");" << std::endl;
872}
dst
Definition: cp.py:12

◆ drawImageRect()

void flutter::testing::DisplayListStreamDispatcher::drawImageRect ( const sk_sp< DlImage image,
const SkRect src,
const SkRect dst,
DlImageSampling  sampling,
bool  render_with_attributes,
SrcRectConstraint  constraint 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 847 of file display_list_testing.cc.

852 {
853 startl() << "drawImageRect(" << image.get() << "," << std::endl;
854 startl() << " src: " << src << "," << std::endl;
855 startl() << " dst: " << dst << "," << std::endl;
856 startl() << " " << sampling << ", "
857 << "with attributes: " << render_with_attributes << ", "
858 << constraint
859 << ");" << std::endl;
860}

◆ drawLine()

void flutter::testing::DisplayListStreamDispatcher::drawLine ( const SkPoint p0,
const SkPoint p1 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 772 of file display_list_testing.cc.

773 {
774 startl() << "drawLine(" << p0 << ", " << p1 << ");" << std::endl;
775}

◆ drawOval()

void flutter::testing::DisplayListStreamDispatcher::drawOval ( const SkRect bounds)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 790 of file display_list_testing.cc.

790 {
791 startl() << "drawOval(" << bounds << ");" << std::endl;
792}
Optional< SkRect > bounds
Definition: SkRecords.h:189

◆ drawPaint()

void flutter::testing::DisplayListStreamDispatcher::drawPaint ( )
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 769 of file display_list_testing.cc.

769 {
770 startl() << "drawPaint();" << std::endl;
771}

◆ drawPath()

void flutter::testing::DisplayListStreamDispatcher::drawPath ( const SkPath path)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 805 of file display_list_testing.cc.

805 {
806 startl() << "drawPath(" << path << ");" << std::endl;
807}

◆ drawPoints()

void flutter::testing::DisplayListStreamDispatcher::drawPoints ( PointMode  mode,
uint32_t  count,
const SkPoint  points[] 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 819 of file display_list_testing.cc.

821 {
822 startl() << "drawPoints(" << mode << ", ";
823 out_array("points", count, points)
824 << ");" << std::endl;
825}
static const int points[]

◆ drawRect()

void flutter::testing::DisplayListStreamDispatcher::drawRect ( const SkRect rect)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 787 of file display_list_testing.cc.

787 {
788 startl() << "drawRect(" << rect << ");" << std::endl;
789}

◆ drawRRect()

void flutter::testing::DisplayListStreamDispatcher::drawRRect ( const SkRRect rrect)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 797 of file display_list_testing.cc.

797 {
798 startl() << "drawRRect(" << rrect << ");" << std::endl;
799}

◆ drawShadow()

void flutter::testing::DisplayListStreamDispatcher::drawShadow ( const SkPath path,
const DlColor  color,
const SkScalar  elevation,
bool  transparent_occluder,
SkScalar  dpr 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 915 of file display_list_testing.cc.

919 {
920 startl() << "drawShadow("
921 << path << ", "
922 << color << ", "
923 << elevation << ", "
924 << transparent_occluder << ", "
925 << dpr
926 << ");" << std::endl;
927}

◆ drawTextBlob()

void flutter::testing::DisplayListStreamDispatcher::drawTextBlob ( const sk_sp< SkTextBlob blob,
SkScalar  x,
SkScalar  y 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 898 of file display_list_testing.cc.

900 {
901 startl() << "drawTextBlob("
902 << blob.get() << ", "
903 << x << ", " << y << ");" << std::endl;
904}
double y
double x

◆ drawTextFrame()

void flutter::testing::DisplayListStreamDispatcher::drawTextFrame ( const std::shared_ptr< impeller::TextFrame > &  text_frame,
SkScalar  x,
SkScalar  y 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 906 of file display_list_testing.cc.

909 {
910 startl() << "drawTextFrame("
911 << text_frame.get() << ", "
912 << x << ", " << y << ");" << std::endl;
913}

◆ drawVertices()

void flutter::testing::DisplayListStreamDispatcher::drawVertices ( const DlVertices vertices,
DlBlendMode  mode 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 826 of file display_list_testing.cc.

827 {
828 startl() << "drawVertices("
829 << "DlVertices("
830 << vertices->mode() << ", ";
831 out_array("vertices", vertices->vertex_count(), vertices->vertices()) << ", ";
832 out_array("texture_coords", vertices->vertex_count(), vertices->texture_coordinates()) << ", ";
833 out_array("colors", vertices->vertex_count(), vertices->colors()) << ", ";
834 out_array("indices", vertices->index_count(), vertices->indices())
835 << "), " << mode << ");" << std::endl;
836}

◆ restore()

void flutter::testing::DisplayListStreamDispatcher::restore ( )
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 675 of file display_list_testing.cc.

675 {
676 outdent();
677 startl() << "}" << std::endl;
678 startl() << "restore();" << std::endl;
679}

◆ rotate()

void flutter::testing::DisplayListStreamDispatcher::rotate ( SkScalar  degrees)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 687 of file display_list_testing.cc.

687 {
688 startl() << "rotate(" << degrees << ");" << std::endl;
689}

◆ save()

void flutter::testing::DisplayListStreamDispatcher::save ( )
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 653 of file display_list_testing.cc.

653 {
654 startl() << "save();" << std::endl;
655 startl() << "{" << std::endl;
656 indent();
657}

◆ saveLayer()

void flutter::testing::DisplayListStreamDispatcher::saveLayer ( const SkRect bounds,
const SaveLayerOptions  options,
const DlImageFilter backdrop 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 658 of file display_list_testing.cc.

660 {
661 startl() << "saveLayer(" << bounds << ", " << options;
662 if (backdrop) {
663 os_ << "," << std::endl;
664 indent(10);
665 startl() << "backdrop: ";
666 out(backdrop);
667 outdent(10);
668 } else {
669 os_ << ", no backdrop";
670 }
671 os_ << ");" << std::endl;
672 startl() << "{" << std::endl;
673 indent();
674}
const char * options
sk_sp< const SkImageFilter > backdrop
Definition: SkRecords.h:191

◆ scale()

void flutter::testing::DisplayListStreamDispatcher::scale ( SkScalar  sx,
SkScalar  sy 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 684 of file display_list_testing.cc.

684 {
685 startl() << "scale(" << sx << ", " << sy << ");" << std::endl;
686}

◆ setAntiAlias()

void flutter::testing::DisplayListStreamDispatcher::setAntiAlias ( bool  aa)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 389 of file display_list_testing.cc.

389 {
390 startl() << "setAntiAlias(" << aa << ");" << std::endl;
391}

◆ setBlendMode()

void flutter::testing::DisplayListStreamDispatcher::setBlendMode ( DlBlendMode  mode)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 544 of file display_list_testing.cc.

544 {
545 startl() << "setBlendMode(" << mode << ");" << std::endl;
546}

◆ setColor()

void flutter::testing::DisplayListStreamDispatcher::setColor ( DlColor  color)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 395 of file display_list_testing.cc.

395 {
396 startl() << "setColor(" << color << ");" << std::endl;
397}

◆ setColorFilter()

void flutter::testing::DisplayListStreamDispatcher::setColorFilter ( const DlColorFilter filter)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 536 of file display_list_testing.cc.

536 {
537 startl() << "setColorFilter(";
538 out(filter);
539 os_ << ");" << std::endl;
540}

◆ setColorSource()

void flutter::testing::DisplayListStreamDispatcher::setColorSource ( const DlColorSource source)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 410 of file display_list_testing.cc.

410 {
411 if (source == nullptr) {
412 startl() << "setColorSource(no ColorSource);" << std::endl;
413 return;
414 }
415 startl() << "setColorSource(";
416 switch (source->type()) {
418 const DlColorColorSource* color_src = source->asColor();
419 FML_DCHECK(color_src);
420 os_ << "DlColorColorSource(" << color_src->color() << ")";
421 break;
422 }
424 const DlImageColorSource* image_src = source->asImage();
425 FML_DCHECK(image_src);
426 os_ << "DlImageColorSource(image: " << image_src->image()
427 << ", hMode: " << image_src->horizontal_tile_mode()
428 << ", vMode: " << image_src->vertical_tile_mode()
429 << ", " << image_src->sampling()
430 << ", " << image_src->matrix_ptr()
431 << ")";
432 break;
433 }
435 const DlLinearGradientColorSource* linear_src = source->asLinearGradient();
436 FML_DCHECK(linear_src);
437 os_ << "DlLinearGradientSource("
438 << "start: " << linear_src->start_point()
439 << ", end: " << linear_src->end_point() << ", ";
440 out_array("colors", linear_src->stop_count(), linear_src->colors()) << ", ";
441 out_array("stops", linear_src->stop_count(), linear_src->stops()) << ", "
442 << linear_src->tile_mode() << ", " << linear_src->matrix_ptr() << ")";
443 break;
444 }
446 const DlRadialGradientColorSource* radial_src = source->asRadialGradient();
447 FML_DCHECK(radial_src);
448 os_ << "DlRadialGradientSource("
449 << "center: " << radial_src->center()
450 << ", radius: " << radial_src->radius() << ", ";
451 out_array("colors", radial_src->stop_count(), radial_src->colors()) << ", ";
452 out_array("stops", radial_src->stop_count(), radial_src->stops()) << ", "
453 << radial_src->tile_mode() << ", " << radial_src->matrix_ptr() << ")";
454 break;
455 }
457 const DlConicalGradientColorSource* conical_src = source->asConicalGradient();
458 FML_DCHECK(conical_src);
459 os_ << "DlConicalGradientColorSource("
460 << "start center: " << conical_src->start_center()
461 << ", start radius: " << conical_src->start_radius()
462 << ", end center: " << conical_src->end_center()
463 << ", end radius: " << conical_src->end_radius() << ", ";
464 out_array("colors", conical_src->stop_count(), conical_src->colors()) << ", ";
465 out_array("stops", conical_src->stop_count(), conical_src->stops()) << ", "
466 << conical_src->tile_mode() << ", " << conical_src->matrix_ptr() << ")";
467 break;
468 }
470 const DlSweepGradientColorSource* sweep_src = source->asSweepGradient();
471 FML_DCHECK(sweep_src);
472 os_ << "DlSweepGradientColorSource("
473 << "center: " << sweep_src->center()
474 << ", start: " << sweep_src->start() << ", "
475 << ", end: " << sweep_src->end() << ", ";
476 out_array("colors", sweep_src->stop_count(), sweep_src->colors()) << ", ";
477 out_array("stops", sweep_src->stop_count(), sweep_src->stops()) << ", "
478 << sweep_src->tile_mode() << ", " << sweep_src->matrix_ptr() << ")";
479 break;
480 }
481 default:
482 os_ << "?DlUnknownColorSource?()";
483 break;
484 }
485 os_ << ");" << std::endl;
486}
sk_sp< SkImage > asImage() const
Definition: SkBitmap.cpp:645
SkBitmap source
Definition: examples.cpp:28
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ setDrawStyle()

void flutter::testing::DisplayListStreamDispatcher::setDrawStyle ( DlDrawStyle  style)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 392 of file display_list_testing.cc.

392 {
393 startl() << "setStyle(" << style << ");" << std::endl;
394}

◆ setImageFilter()

void flutter::testing::DisplayListStreamDispatcher::setImageFilter ( const DlImageFilter filter)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 646 of file display_list_testing.cc.

646 {
647 startl() << "setImageFilter(";
648 indent(15);
649 out(filter);
650 outdent(15);
651 os_ << ");" << std::endl;
652}

◆ setInvertColors()

void flutter::testing::DisplayListStreamDispatcher::setInvertColors ( bool  invert)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 541 of file display_list_testing.cc.

541 {
542 startl() << "setInvertColors(" << invert << ");" << std::endl;
543}
gboolean invert

◆ setMaskFilter()

void flutter::testing::DisplayListStreamDispatcher::setMaskFilter ( const DlMaskFilter filter)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 547 of file display_list_testing.cc.

547 {
548 if (filter == nullptr) {
549 startl() << "setMaskFilter(no MaskFilter);" << std::endl;
550 return;
551 }
552 startl() << "setMaskFilter(";
553 switch (filter->type()) {
555 const DlBlurMaskFilter* blur = filter->asBlur();
556 FML_DCHECK(blur);
557 os_ << "DlMaskFilter(" << blur->style() << ", " << blur->sigma() << ")";
558 break;
559 }
560 default:
561 os_ << "?DlUnknownMaskFilter?()";
562 break;
563 }
564 os_ << ");" << std::endl;
565}

◆ setStrokeCap()

void flutter::testing::DisplayListStreamDispatcher::setStrokeCap ( DlStrokeCap  cap)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 404 of file display_list_testing.cc.

404 {
405 startl() << "setStrokeCap(" << cap << ");" << std::endl;
406}

◆ setStrokeJoin()

void flutter::testing::DisplayListStreamDispatcher::setStrokeJoin ( DlStrokeJoin  join)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 407 of file display_list_testing.cc.

407 {
408 startl() << "setStrokeJoin(" << join << ");" << std::endl;
409}
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741

◆ setStrokeMiter()

void flutter::testing::DisplayListStreamDispatcher::setStrokeMiter ( SkScalar  limit)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 401 of file display_list_testing.cc.

401 {
402 startl() << "setStrokeMiter(" << limit << ");" << std::endl;
403}

◆ setStrokeWidth()

void flutter::testing::DisplayListStreamDispatcher::setStrokeWidth ( SkScalar  width)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 398 of file display_list_testing.cc.

398 {
399 startl() << "setStrokeWidth(" << width << ");" << std::endl;
400}
int32_t width

◆ skew()

void flutter::testing::DisplayListStreamDispatcher::skew ( SkScalar  sx,
SkScalar  sy 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 690 of file display_list_testing.cc.

690 {
691 startl() << "skew(" << sx << ", " << sy << ");" << std::endl;
692}

◆ transform2DAffine()

void flutter::testing::DisplayListStreamDispatcher::transform2DAffine ( SkScalar  mxx,
SkScalar  mxy,
SkScalar  mxt,
SkScalar  myx,
SkScalar  myy,
SkScalar  myt 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 693 of file display_list_testing.cc.

695 {
696 startl() << "transform2DAffine(" << std::endl;
697 indent();
698 {
699 startl()
700 << "[" << mxx << ", " << mxy << ", " << mxt << "], "
701 << std::endl;
702 startl()
703 << "[" << myx << ", " << myy << ", " << myt << "], "
704 << std::endl;
705 }
706 outdent();
707 startl() << ");" << std::endl;
708}

◆ transformFullPerspective()

void flutter::testing::DisplayListStreamDispatcher::transformFullPerspective ( SkScalar  mxx,
SkScalar  mxy,
SkScalar  mxz,
SkScalar  mxt,
SkScalar  myx,
SkScalar  myy,
SkScalar  myz,
SkScalar  myt,
SkScalar  mzx,
SkScalar  mzy,
SkScalar  mzz,
SkScalar  mzt,
SkScalar  mwx,
SkScalar  mwy,
SkScalar  mwz,
SkScalar  mwt 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 709 of file display_list_testing.cc.

713 {
714 startl() << "transformFullPerspective(" << std::endl;
715 indent();
716 {
717 startl()
718 << "[" << mxx << ", " << mxy << ", " << mxz << ", " << mxt << "], "
719 << std::endl;
720 startl()
721 << "[" << myx << ", " << myy << ", " << myz << ", " << myt << "], "
722 << std::endl;
723 startl()
724 << "[" << mzx << ", " << mzy << ", " << mzz << ", " << mzt << "], "
725 << std::endl;
726 startl()
727 << "[" << mwx << ", " << mwy << ", " << mwz << ", " << mwt << "]"
728 << std::endl;
729 }
730 outdent();
731 startl() << ");" << std::endl;
732}

◆ transformReset()

void flutter::testing::DisplayListStreamDispatcher::transformReset ( )
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 733 of file display_list_testing.cc.

733 {
734 startl() << "transformReset();" << std::endl;
735}

◆ translate()

void flutter::testing::DisplayListStreamDispatcher::translate ( SkScalar  tx,
SkScalar  ty 
)
overridevirtual

Implements flutter::DlOpReceiver.

Definition at line 681 of file display_list_testing.cc.

681 {
682 startl() << "translate(" << tx << ", " << ty << ");" << std::endl;
683}

The documentation for this class was generated from the following files: