5#ifndef FLUTTER_DISPLAY_LIST_SKIA_DL_SK_DISPATCHER_H_
6#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_DISPATCHER_H_
8#include "flutter/display_list/display_list.h"
9#include "flutter/display_list/dl_op_receiver.h"
10#include "flutter/display_list/skia/dl_sk_paint_dispatcher.h"
11#include "flutter/display_list/skia/dl_sk_types.h"
12#include "flutter/fml/macros.h"
26 original_transform_(canvas->getLocalToDevice()) {}
73 bool useCenter)
override;
79 bool render_with_attributes)
override;
84 bool render_with_attributes,
90 bool render_with_attributes)
override;
99 bool render_with_attributes)
override;
105 void drawTextFrame(
const std::shared_ptr<impeller::TextFrame>& text_frame,
111 bool transparent_occluder,
118 bool transparentOccluder,
123 const SkM44 original_transform_;
Internal API for rendering recorded display lists to backends.
DlCanvas::SrcRectConstraint SrcRectConstraint
DlCanvas::PointMode PointMode
Backend implementation of |DlOpReceiver| for |SkCanvas|.
void drawPaint() 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 transform2DAffine(SkScalar mxx, SkScalar mxy, SkScalar mxt, SkScalar myx, SkScalar myy, SkScalar myt) override
void drawPoints(PointMode mode, uint32_t count, const SkPoint pts[]) override
void drawImageNine(const sk_sp< DlImage > image, const SkIRect ¢er, const SkRect &dst, DlFilterMode filter, bool render_with_attributes) override
void drawDashedLine(const DlPoint &p0, const DlPoint &p1, DlScalar on_length, DlScalar off_length) override
void transformReset() override
const SkPaint * safe_paint(bool use_attributes)
void drawRRect(const SkRRect &rrect) override
void drawCircle(const SkPoint ¢er, SkScalar radius) override
void drawPath(const SkPath &path) override
void drawArc(const SkRect &bounds, SkScalar start, SkScalar sweep, bool useCenter) override
void drawShadow(const SkPath &path, const DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr) override
void drawImage(const sk_sp< DlImage > image, const SkPoint point, DlImageSampling sampling, bool render_with_attributes) override
void drawOval(const SkRect &bounds) override
void clipRect(const SkRect &rect, ClipOp clip_op, bool is_aa) override
void rotate(SkScalar degrees) override
void translate(SkScalar tx, SkScalar ty) override
void drawColor(DlColor color, DlBlendMode mode) override
void drawDisplayList(const sk_sp< DisplayList > display_list, SkScalar opacity) override
static void DrawShadow(SkCanvas *canvas, const SkPath &path, DlColor color, float elevation, bool transparentOccluder, SkScalar dpr)
void drawLine(const SkPoint &p0, const SkPoint &p1) override
void drawVertices(const DlVertices *vertices, DlBlendMode mode) override
void skew(SkScalar sx, SkScalar sy) override
void drawRect(const SkRect &rect) 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 clipPath(const SkPath &path, ClipOp clip_op, bool is_aa) 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 *cullRect, bool render_with_attributes) override
void saveLayer(const SkRect &bounds, const SaveLayerOptions options, const DlImageFilter *backdrop) override
void clipRRect(const SkRRect &rrect, ClipOp clip_op, bool is_aa) override
void scale(SkScalar sx, SkScalar sy) override
DlSkCanvasDispatcher(SkCanvas *canvas, SkScalar opacity=SK_Scalar1)
void drawDRRect(const SkRRect &outer, const SkRRect &inner) override
void drawImageRect(const sk_sp< DlImage > image, const SkRect &src, const SkRect &dst, DlImageSampling sampling, bool render_with_attributes, SrcRectConstraint constraint) override
Holds all of the data (both required and optional) for a DisplayList drawVertices call.
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
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
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