30 SkISize getISize()
override {
return {600, 280}; }
38 path.setFillType(fill);
41 paint.setStyle(style);
48 void onDraw(
SkCanvas* canvas)
override {
53 constexpr FillAndName gFills[] = {
63 constexpr StyleAndName
gStyles[] = {
70 const char title[] =
"Empty Paths Drawn Into Rectangle Clips With "
71 "Indicated Style and Fill";
81 for (
size_t fill = 0; fill <
std::size(gFills); ++fill) {
109 labelFont, labelPaint);
111 labelFont, labelPaint);
163 SkISize getISize()
override {
return {200, 240}; }
165 void onDraw(
SkCanvas* canvas)
override {
166 static constexpr SkPath (*kProcs[])() = {
183 for (
auto proc : kProcs) {
185 canvas->
drawPath(proc(), strokePaint);
SkStrokeRec::Style fStyle
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
@ kPoints_PointMode
draw each point separately
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
void setStrokeCap(Cap cap)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
void setStrokeWidth(SkScalar width)
SkPathBuilder & lineTo(SkPoint pt)
SkPathBuilder & moveTo(SkPoint pt)
sk_sp< SkBlender > blender SkRect rect
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 SkPath make_path_move()
static constexpr SkPoint kPts[kPtsCount]
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static SkPath make_path_move_close()
static SkPath make_path_move_mix()
static SkPath make_path_move_line()
static constexpr int kPtsCount
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkFontStyle gStyles[]