42 constexpr int numRows = 3 * 2;
63 {{0, 0}, {40, 0}, {80, 0}, {120, 0},
64 {0, 20}, {40, 20}, {80, 20}, {120, 20},
67 {{{0, 1, 4}}, {{1, 5, 4}},
68 {{5, 1, 6}}, {{1, 2, 6}},
69 {{2, 3, 6}}, {{3, 7, 6}},
70 {{8, 5, 9}}, {{5, 6, 9}},
71 {{10, 8, 11}}, {{8, 9, 11}}});
75 {{ 0, 0}, {10, 0}, {20, 0},
79 { 0, 8}, {10, 8}, {20, 8}},
80 {{{3, 1, 4}}, {{4, 5, 3}}, {{6, 5, 7}}, {{7, 9, 6}},
81 {{0, 1, 3}}, {{1, 2, 4}},
82 {{3, 5, 6}}, {{5, 4, 7}},
83 {{6, 9, 8}}, {{9, 7, 10}}});
90 {{0, 0}, {-1, 0}, {0, -1}, {1, 0}, {0, 1}},
91 {{{0, 1, 2}}, {{0, 2, 3}}, {{0, 3, 4}}, {{0, 4, 1}}});
95 std::vector<SkPoint> pts;
96 std::vector<std::array<int, 3>> indices;
98 pts.push_back({0, 0});
101 if (pts.size() > 2) {
102 indices.push_back({{0, (
int)pts.size() - 2, (
int)pts.size() - 1}});
106 indices.push_back({{0, (
int)pts.size() - 1, 1}});
111 const std::vector<std::array<int, 3>>& triangles) {
114 path.setIsVolatile(
true);
115 for (
const std::array<int, 3>& triangle : triangles) {
133 rot.
setRotate(-45 - 69.38111f,
path.getBounds().centerX(),
path.getBounds().centerY());
151 canvas->
translate(jitter.x(), jitter.y());
static const int points[]
constexpr SkColor SK_ColorWHITE
#define SkScalarSin(radians)
#define SkScalarCos(radians)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
SkMatrix & setRotate(SkScalar degrees, SkScalar px, SkScalar py)
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
float nextRangeF(float min, float max)
void onDraw(SkCanvas *canvas) override
void drawTriangleBoxes(SkCanvas *canvas, const std::vector< SkPoint > &points, const std::vector< std::array< int, 3 > > &triangles)
SkISize getISize() override
void drawRow(SkCanvas *canvas, const SkPath &path)
void onOnceBeforeDraw() override
SkString getName() const override
static float max(float r, float g, float b)
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 constexpr SkPoint kJitters[]
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static constexpr int kPadSize
static SkPath scale(const SkPath &path, SkScalar scale)
static constexpr int kBoxSize
static constexpr SkISize Make(int32_t w, int32_t h)