43 {
44 constexpr char kSkiaStr[] = "SKIA";
45 constexpr SkScalar kGradientPad = .1f;
46 constexpr SkScalar kVerticalSpacing = 0.25f;
47 constexpr SkScalar kAccentScale = 1.20f;
48
50 paint.setAntiAlias(
true);
51
53 font.setSubpixel(
true);
54 font.setEmbolden(
true);
55
57 SkRect iBox, skiBox, skiaBox;
63
64 const size_t textLen = strlen(kSkiaStr);
67 skiaBox.
outset(0, 2 * iBox.
width() * (kVerticalSpacing + 1));
68
74
76 iBox.
y() - (0.5f + kVerticalSpacing) * accentSize,
77 accentSize / 2,
79
81 path.moveTo(iBox.
centerX() - accentSize / 2, iBox.
bottom() + kVerticalSpacing * accentSize);
82 path.rLineTo(accentSize, 0);
85
87 underlineY,
89 underlineY + accentSize / 10);
92 const SkScalar pos1[] = { 0, 0.75f };
98
101 const SkScalar pos2[] = { 0, .01f, 1.0f/3, 1.0f/3, 2.0f/3, 2.0f/3, .99f, 1 };
104 0xffca5139,
105 0xffca5139,
106 0xff8dbd53,
107 0xff8dbd53,
108 0xff5460a5,
109 0xff5460a5,
111 };
116}
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorBLACK
@ kUTF8
uses bytes to represent UTF-8 or ASCII
bool SK_API TightBounds(const SkPath &path, SkRect *result)
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 drawPath(const SkPath &path, const SkPaint &paint)
void concat(const SkMatrix &matrix)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
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 SkMatrix RectToRect(const SkRect &src, const SkRect &dst, ScaleToFit mode=kFill_ScaleToFit)
static void GetPath(const void *text, size_t length, SkTextEncoding, SkScalar x, SkScalar y, const SkFont &, SkPath *)
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 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 constexpr SkPoint Make(float x, float y)
void offsetTo(float newX, float newY)
constexpr float x() const
void outset(float dx, float dy)
constexpr float y() const
SkScalar fRight
larger x-axis bounds
constexpr float centerX() const
constexpr float right() const
constexpr float width() const
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
constexpr float bottom() const
SkScalar fTop
smaller y-axis bounds