92 const SkImage* bmps[] = { fSolidImg.
get(), fTransparentImg.
get() };
101 matrix.setSaturation(0.0f);
105 matrix.setSaturation(0.5f);
109 matrix.setSaturation(1.0f);
113 matrix.setSaturation(2.0f);
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
static sk_sp< SkImage > CreateSolidBitmap(int width, int height)
void onOnceBeforeDraw() override
static sk_sp< SkImage > CreateTransparentBitmap(int width, int height)
SkString getName() const override
sk_sp< SkImage > asImage() const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkColorFilter > Matrix(const SkColorMatrix &)
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
static void set_array(SkPaint *paint, const float array[])
static void set_color_matrix(SkPaint *paint, const SkColorMatrix &matrix)
unsigned useCenter Optional< SkMatrix > matrix
PODArray< SkColor > colors
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
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)
std::shared_ptr< const fml::Mapping > data