5#include "flutter/flow/paint_utils.h"
16std::shared_ptr<DlColorSource> CreateCheckerboardShader(
SkColor c1,
25 return std::make_shared<DlImageColorSource>(
39 auto checkerboard_color =
45 CreateCheckerboardShader(checkerboard_color, 0x00000000, 12));
static constexpr SkColor SkColorSetA(SkColor c, U8CPU a)
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
void eraseArea(const SkIRect &area, SkColor c) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void eraseColor(SkColor4f) const
Developer-facing API for rendering anything within the engine.
virtual void DrawPaint(const DlPaint &paint)=0
virtual void DrawRect(const SkRect &rect, const DlPaint &paint)=0
virtual void ClipRect(const SkRect &rect, ClipOp clip_op=ClipOp::kIntersect, bool is_aa=false)=0
static sk_sp< DlImage > Make(const SkImage *image)
DlPaint & setColor(DlColor color)
DlPaint & setStrokeWidth(float width)
DlPaint & setDrawStyle(DlDrawStyle style)
SK_API sk_sp< SkImage > RasterFromBitmap(const SkBitmap &bitmap)
sk_sp< const SkImage > image
sk_sp< SkBlender > blender SkRect rect
@ kStroke
strokes boundary of shapes
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 keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
void DrawCheckerboard(DlCanvas *canvas, const SkRect &rect)
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)