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"
33extern std::ostream&
operator<<(std::ostream& os,
38extern std::ostream&
operator<<(std::ostream& os,
40extern std::ostream&
operator<<(std::ostream& os,
58 : os_(os), cur_indent_(cur_indent), indent_(indent) {}
112 bool use_center)
override;
120 bool render_with_attributes)
override;
125 bool render_with_attributes,
131 bool render_with_attributes)
override;
140 bool render_with_attributes)
override;
146 void drawTextFrame(
const std::shared_ptr<impeller::TextFrame>& text_frame,
152 bool transparent_occluder,
160 void indent() { indent(indent_); }
161 void outdent() { outdent(indent_); }
162 void indent(
int spaces) { cur_indent_ += spaces; }
163 void outdent(
int spaces) { cur_indent_ -= spaces; }
166 std::ostream& out_array(std::string
name,
int count,
const T array[]);
168 std::ostream& startl();
170 void out(
const DlColorFilter& filter);
171 void out(
const DlColorFilter* filter);
172 void out(
const DlImageFilter& filter);
173 void out(
const DlImageFilter* filter);
static const int points[]
static SkScalar center(float pos0, float pos1)
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 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 setPathEffect(const DlPathEffect *effect) 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
bool DisplayListsNE_Verbose(const DisplayList *a, const DisplayList *b)
std::ostream & operator<<(std::ostream &os, const DisplayList &display_list)
bool DisplayListsEQ_Verbose(const DisplayList *a, const DisplayList *b)
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