39 matrix.setScale(0.75f, 0.75f);
53 font.getPos(rec.glyphs,
count, rec.points(), {x, y});
75 const char text[] =
"HELLO WORLD";
97 canvas->clear(0xFFCECFCE);
99 canvas->translate(0, -translate);
103 size - 8 + translate);
104 canvas->drawRect(
rect, checker);
107 canvas->translate(
size, 0);
109 SkVector radii[4] = {{40, 40}, {40, 40}, {40, 40}, {40, 40}};
111 canvas->drawRRect(
rrect, checker);
118 {8,
size / 2 + translate},
130 canvas->translate(
size, 0);
static const int points[]
constexpr SkColor SK_ColorCYAN
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
@ kUTF8
uses bytes to represent UTF-8 or ASCII
void eraseArea(const SkIRect &area, SkColor c) const
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void eraseColor(SkColor4f) const
void drawSimpleText(const void *text, size_t byteLength, SkTextEncoding encoding, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
@ kLines_PointMode
draw each pair of points as a line segment
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
@ kAlias
no transparent pixels on glyph edges
void setStyle(Style style)
void setAntiAlias(bool aa)
void setStrokeCap(Cap cap)
@ kStroke_Style
set to stroke geometry
void setStrokeWidth(SkScalar width)
void setRectRadii(const SkRect &rect, const SkVector radii[4])
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< SkBlender > blender SkRect rect
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.
DEF_SIMPLE_GM(skbug_257, canvas, 512, 512)
static void rotated_checkerboard_shader(SkPaint *paint, SkColor c1, SkColor c2, int size)
static void test_text(SkCanvas *canvas, SkScalar size, SkColor color, SkScalar Y)
static void exercise_draw_pos_text_h(SkCanvas *canvas, const char *text, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
static void exercise_draw_pos_text(SkCanvas *canvas, const char *text, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)