30 paint.setAntiAlias(
true);
42 canvas->translate(10, 10);
43 canvas->drawDrawable(drawable.
get());
44 canvas->drawDrawable(drawable.
get(), 0, 150);
47 m.postTranslate(70, 0);
48 canvas->drawDrawable(drawable.
get(), &
m);
50 m.postTranslate(0, 150);
51 canvas->drawDrawable(drawable.
get(), &
m);
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorWHITE
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawPath(const SkPath &path, const SkPaint &paint)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
SkPathBuilder & conicTo(SkPoint pt1, SkPoint pt2, SkScalar w)
SkPathBuilder & moveTo(SkPoint pt)
DEF_SIMPLE_GM(drawable, canvas, 180, 275)
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
void onDraw(SkCanvas *canvas) override
SkRect onGetBounds() override
static constexpr SkRect MakeWH(float w, float h)