49 {{{122, 737}, {348, 553}, {403, 761}, {400, 760}}, 4,
CellFillMode::kStretch},
50 {{{244, 520}, {244, 518}, {1141, 634}, {394, 688}}, 4,
CellFillMode::kStretch},
51 {{{550, 194}, {138, 130}, {1035, 246}, {288, 300}}, 4,
CellFillMode::kStretch},
52 {{{226, 733}, {556, 779}, {-43, 471}, {348, 683}}, 4,
CellFillMode::kStretch},
53 {{{268, 204}, {492, 304}, {352, 23}, {433, 412}}, 4,
CellFillMode::kStretch},
54 {{{172, 480}, {396, 580}, {256, 299}, {338, 677}}, 4,
CellFillMode::kStretch},
55 {{{731, 340}, {318, 252}, {1026, -64}, {367, 265}}, 4,
CellFillMode::kStretch},
56 {{{475, 708}, {62, 620}, {770, 304}, {220, 659}}, 4,
CellFillMode::kStretch},
57 {{{0, 0}, {128, 128}, {128, 0}, {0, 128}}, 4,
CellFillMode::kCenter},
58 {{{0,.01f}, {128,127.999f}, {128,.01f}, {0,127.99f}}, 4,
CellFillMode::kCenter},
59 {{{0,-.01f}, {128,128.001f}, {128,-.01f}, {0,128.001f}}, 4,
CellFillMode::kCenter},
60 {{{0,0}, {0,-10}, {0,-10}, {0,10}}, 4,
CellFillMode::kCenter, 1.098283f},
61 {{{10,0}, {0,0}, {20,0}, {10,0}}, 4,
CellFillMode::kStretch},
62 {{{39,-39}, {40,-40}, {40,-40}, {0,0}}, 4,
CellFillMode::kStretch},
63 {{{39,-39}, {40,-40}, {37,-39}, {0,0}}, 4,
CellFillMode::kStretch},
64 {{{40, 40}, {0, 0}, {200, 200}, {0, 0}}, 4,
CellFillMode::kStretch},
65 {{{0,0}, {1e-2f,0}, {-1e-2f,0}, {0,0}}, 4,
CellFillMode::kCenter},
66 {{{400.75f,100.05f}, {400.75f,100.05f}, {100.05f,300.95f}, {100.05f,300.95f}}, 4,
68 {{{0.5f,0}, {0,0}, {20,0}, {10,0}}, 4,
CellFillMode::kStretch},
69 {{{10,0}, {0,0}, {10,0}, {10,0}}, 4,
CellFillMode::kStretch},
70 {{{1,1}, {2,1}, {1,1}, {1, std::numeric_limits<float>::quiet_NaN()}}, 3,
72 {{{1,1}, {100,1}, {25,1}, {.3f, std::numeric_limits<float>::quiet_NaN()}}, 3,
74 {{{1,1}, {100,1}, {25,1}, {1.5f, std::numeric_limits<float>::quiet_NaN()}}, 3,
97 return (
b -
a) *
T +
a;
122 memcpy(
p, originalPts,
sizeof(
SkPoint) * numPts);
123 for (
int j = 0; j < numPts; ++j) {
126 float w = originalPts[3].fX;
146 (cellRect.width() - strokeBounds.
width()) / 2,
148 (cellRect.height() - strokeBounds.
height()) / 2);
157 path.cubicTo(
p[1],
p[2],
p[3]);
constexpr SkColor SK_ColorBLACK
void SkChopCubicAt(const SkPoint src[4], SkPoint dst[7], SkScalar t)
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
void concat(const SkMatrix &matrix)
static SkMatrix RectToRect(const SkRect &src, const SkRect &dst, ScaleToFit mode=kFill_ScaleToFit)
@ kCenter_ScaleToFit
scales and aligns to center
@ kButt_Cap
no stroke extension
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
void setStrokeCap(Cap cap)
@ kStroke_Style
set to stroke geometry
void setStrokeJoin(Join join)
@ kMiter_Join
extends to miter limit
void setStrokeWidth(SkScalar width)
SkPath & moveTo(SkScalar x, SkScalar y)
static float max(float r, float g, float b)
static float min(float r, float g, float b)
unsigned useCenter Optional< SkMatrix > matrix
Optional< SkRect > bounds
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
static SkString join(const CommandLineFlags::StringArray &)
void outset(float dx, float dy)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
constexpr float height() const
constexpr float width() const
static const TrickyCubic kTrickyCubics[]
static constexpr int kCellSize
static constexpr float kStrokeWidth
static SkRect calc_tight_cubic_bounds(const SkPoint P[4], int depth=5)
static constexpr int kTestHeight
DEF_SIMPLE_GM(trickycubicstrokes, canvas, kTestWidth, kTestHeight)
static constexpr int kNumCols
static constexpr int kNumRows
static void draw_test(SkCanvas *canvas, SkPaint::Cap cap, SkPaint::Join join)
static constexpr int kTestWidth
static SkPoint lerp(const SkPoint &a, const SkPoint &b, float T)