40 char labelBuffer[256];
41 const char* invertStr =
45 "InvLight" :
"NoInvert"));
47 snprintf(labelBuffer,
sizeof(labelBuffer),
"%s%s contrast=%.1f",
56 size_t len = strlen(labelBuffer);
70 paint.setARGB(0xff, 0x66, 0x11, 0x11);
77 paint.setARGB(0xff, 0xbb, 0x77, 0x77);
81 paint.setARGB(0xff, 0xcc, 0xcc, 0xff);
84 paint.setARGB(0xff, 0x88, 0x88, 0xbb);
88 SkPoint pts[] = { { 0, 0 }, { 1, 0 } };
111 SkPoint g1Points[] = { { 0, 0 }, { 0, 100 } };
static constexpr SkColor SkColorSetA(SkColor c, U8CPU a)
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
@ kUTF8
uses bytes to represent UTF-8 or ASCII
void onOnceBeforeDraw() override
SkString getName() const override
void onDraw(SkCanvas *canvas) override
SkISize getISize() override
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawSimpleText(const void *text, size_t byteLength, SkTextEncoding encoding, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void scale(SkScalar sx, SkScalar sy)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
@ kAntiAlias
may have transparent pixels on glyph edges
@ kAlias
no transparent pixels on glyph edges
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)
void setColorFilter(sk_sp< SkColorFilter > colorFilter)
static void draw_label(SkCanvas *canvas, const SkHighContrastConfig &config)
static void draw_scene(SkCanvas *canvas, const SkHighContrastConfig &config)
Optional< SkRect > bounds
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
font
Font Metadata and Metrics.
static sk_sp< SkColorFilter > Make(const SkHighContrastConfig &config)
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)