43 paint.setColor(0xFFFFFFFF);
44 surf->getCanvas()->drawString(
"ABC", 10, 55,
font,
paint);
45 surf->getCanvas()->drawString(
"XYZ", 10, 110,
font,
paint);
47 fImage = surf->makeImageSnapshot();
63 int fRadiusX, fRadiusY;
74 for (
unsigned j = 0; j < 4; ++j) {
76 const SkIRect* cr = j & 0x02 ? &cropRect :
nullptr;
79 samples[
i].fRadiusX, samples[
i].fRadiusY,
nullptr, cr));
82 samples[
i].fRadiusX, samples[
i].fRadiusY,
nullptr, cr));
97DEF_GM(
return new MorphologyGM;)
void translate(SkScalar dx, SkScalar dy)
void clipIRect(const SkIRect &irect, SkClipOp op=SkClipOp::kIntersect)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkImageFilter > Erode(SkScalar radiusX, SkScalar radiusY, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
static sk_sp< SkImageFilter > Dilate(SkScalar radiusX, SkScalar radiusY, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
GM(SkColor backgroundColor=SK_ColorWHITE)
SkISize getISize() override
SkString getName() const override
void onOnceBeforeDraw() override
void drawClippedBitmap(SkCanvas *canvas, const SkPaint &paint, int x, int y)
void onDraw(SkCanvas *canvas) override
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
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.
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static constexpr SkISize Make(int32_t w, int32_t h)
static SkImageInfo MakeN32Premul(int width, int height)