28 const int kFixed = 28;
29 const int kStretchy = 8;
30 const int kSize = 2*kFixed + kStretchy;
39 center->setXYWH(kFixed, kFixed, kStretchy, kStretchy);
42 paint.setAntiAlias(
true);
44 paint.setColor(0xFFFF0000);
47 paint.setColor(0x8800FF00);
50 paint.setColor(0x880000FF);
53 return surface->makeImageSnapshot();
77 { fixed * 4 / 5, fixed * 4 / 5 },
78 { fixed * 4 / 5, fixed * 4 },
79 { fixed * 4, fixed * 4 / 5 },
80 { fixed * 4, fixed * 4 }
90 for (
int iy = 0; iy < 2; ++iy) {
91 for (
int ix = 0; ix < 2; ++ix) {
static const int strokeWidth
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static SkScalar center(float pos0, float pos1)
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
SkString getName() const override
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawImageNine(const SkImage *image, const SkIRect ¢er, const SkRect &dst, SkFilterMode filter, const SkPaint *paint=nullptr)
virtual GrRecordingContext * recordingContext() const
void drawRoundRect(const SkRect &rect, SkScalar rx, SkScalar ry, const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
virtual bool isValid(GrRecordingContext *context) const =0
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 sk_sp< SkSurface > make_surface(SkCanvas *root, int N)
static sk_sp< SkImage > make_image(SkCanvas *root, SkIRect *center)
constexpr int32_t width() const
static constexpr SkISize Make(int32_t w, int32_t h)
static SkImageInfo MakeN32Premul(int width, int height)
void setXYWH(float x, float y, float width, float height)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)