5#ifndef FLUTTER_TESTING_DISPLAY_LIST_TESTING_H_
6#define FLUTTER_TESTING_DISPLAY_LIST_TESTING_H_
10#include "flutter/display_list/display_list.h"
11#include "flutter/display_list/dl_op_receiver.h"
38extern std::ostream&
operator<<(std::ostream& os,
40extern std::ostream&
operator<<(std::ostream& os,
42extern std::ostream&
operator<<(std::ostream& os,
44extern std::ostream&
operator<<(std::ostream& os,
46extern std::ostream&
operator<<(std::ostream& os,
48extern std::ostream&
operator<<(std::ostream& os,
50extern std::ostream&
operator<<(std::ostream& os,
52extern std::ostream&
operator<<(std::ostream& os,
54extern std::ostream&
operator<<(std::ostream& os,
56extern std::ostream&
operator<<(std::ostream& os,
58extern std::ostream&
operator<<(std::ostream& os,
60extern std::ostream&
operator<<(std::ostream& os,
62extern std::ostream&
operator<<(std::ostream& os,
64extern std::ostream&
operator<<(std::ostream& os,
66extern std::ostream&
operator<<(std::ostream& os,
68extern std::ostream&
operator<<(std::ostream& os,
70extern std::ostream&
operator<<(std::ostream& os,
83 : os_(os), cur_indent_(cur_indent), indent_(indent) {}
140 bool use_center)
override;
148 bool render_with_attributes)
override;
153 bool render_with_attributes,
159 bool render_with_attributes)
override;
168 bool render_with_attributes)
override;
174 void drawTextFrame(
const std::shared_ptr<impeller::TextFrame>& text_frame,
180 bool transparent_occluder,
188 void indent() { indent(indent_); }
189 void outdent() { outdent(indent_); }
190 void indent(
int spaces) { cur_indent_ += spaces; }
191 void outdent(
int spaces) { cur_indent_ -= spaces; }
194 std::ostream& out_array(std::string
name,
int count,
const T array[]);
196 std::ostream& startl();
198 void out(
const DlColorFilter& filter);
199 void out(
const DlColorFilter* filter);
200 void out(
const DlImageFilter& filter);
201 void out(
const DlImageFilter* filter);
static const int points[]
Represents an image whose allocation is (usually) resident on device memory.
Internal API for rendering recorded display lists to backends.
DlCanvas::SrcRectConstraint SrcRectConstraint
Holds all of the data (both required and optional) for a DisplayList drawVertices call.
void setInvertColors(bool invert) override
void drawOval(const SkRect &bounds) override
void drawRect(const SkRect &rect) override
void setImageFilter(const DlImageFilter *filter) override
void setStrokeCap(DlStrokeCap cap) override
void drawVertices(const DlVertices *vertices, DlBlendMode mode) override
DisplayListStreamDispatcher(std::ostream &os, int cur_indent=2, int indent=2)
void drawDRRect(const SkRRect &outer, const SkRRect &inner) override
void setStrokeMiter(SkScalar limit) override
void clipRect(const SkRect &rect, ClipOp clip_op, bool is_aa) override
void drawShadow(const SkPath &path, const DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr) override
void setAntiAlias(bool aa) override
void drawTextFrame(const std::shared_ptr< impeller::TextFrame > &text_frame, SkScalar x, SkScalar y) override
void drawImageNine(const sk_sp< DlImage > image, const SkIRect ¢er, const SkRect &dst, DlFilterMode filter, bool render_with_attributes) override
void setStrokeWidth(SkScalar width) override
void setMaskFilter(const DlMaskFilter *filter) override
void drawImageRect(const sk_sp< DlImage > image, const SkRect &src, const SkRect &dst, DlImageSampling sampling, bool render_with_attributes, SrcRectConstraint constraint) override
void drawDashedLine(const DlPoint &p0, const DlPoint &p1, DlScalar on_length, DlScalar off_length) override
void drawPath(const SkPath &path) override
void translate(SkScalar tx, SkScalar ty) override
void rotate(SkScalar degrees) override
void saveLayer(const SkRect &bounds, const SaveLayerOptions options, const DlImageFilter *backdrop) override
void setStrokeJoin(DlStrokeJoin join) override
void transform2DAffine(SkScalar mxx, SkScalar mxy, SkScalar mxt, SkScalar myx, SkScalar myy, SkScalar myt) override
void setColorFilter(const DlColorFilter *filter) override
void drawArc(const SkRect &oval_bounds, SkScalar start_degrees, SkScalar sweep_degrees, bool use_center) override
void drawCircle(const SkPoint ¢er, SkScalar radius) override
void drawImage(const sk_sp< DlImage > image, const SkPoint point, DlImageSampling sampling, 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 clipRRect(const SkRRect &rrect, ClipOp clip_op, bool is_aa) override
void setBlendMode(DlBlendMode mode) override
void drawLine(const SkPoint &p0, const SkPoint &p1) override
void setDrawStyle(DlDrawStyle style) override
void transformReset() override
void drawPaint() override
void drawPoints(PointMode mode, uint32_t count, const SkPoint points[]) override
void drawColor(DlColor color, DlBlendMode mode) override
void setColor(DlColor color) override
void skew(SkScalar sx, SkScalar sy) override
void drawRRect(const SkRRect &rrect) override
void setColorSource(const DlColorSource *source) override
void scale(SkScalar sx, SkScalar sy) 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 drawTextBlob(const sk_sp< SkTextBlob > blob, SkScalar x, SkScalar y) override
void clipPath(const SkPath &path, ClipOp clip_op, bool is_aa) override
sk_sp< const SkImage > atlas
Optional< SkRect > bounds
sk_sp< const SkImage > image
sk_sp< const SkImageFilter > backdrop
sk_sp< SkBlender > blender SkRect rect
PODArray< SkColor > colors
SkSamplingOptions sampling
bool DisplayListsNE_Verbose(const DisplayList *a, const DisplayList *b)
bool DisplayListsEQ_Verbose(const DisplayList *a, const DisplayList *b)
impeller::Scalar DlScalar
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
DEF_SWITCHES_START aot vmservice shared library name
DlVertexMode
Defines the way in which the vertices of a DlVertices object are separated into triangles into which ...
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
std::ostream & operator<<(std::ostream &out, const impeller::Color &c)
flutter::DisplayList DisplayList
static SkString join(const CommandLineFlags::StringArray &)