62DEF_GM(
return new EncodeGM; )
71 for (
int i = 0;
i < 8; ++
i) {
73 path.printf(
"/skia/orientation/Landscape_%d.jpg",
i + 1);
79 canvas->scale(0.25, 0.25);
80 for (
int i = 0;
i < 8; ++
i) {
82 canvas->drawImage(img, 0, 0,
nullptr);
83 canvas->translate(0, img->
height());
#define SkASSERT_RELEASE(cond)
const SkPixmap & pixmap() const
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkData > MakeFromStream(SkStream *, size_t size)
@ kAlias
no transparent pixels on glyph edges
static std::unique_ptr< SkStreamAsset > MakeFromFile(const char path[])
SkString getName() const override
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
GM(SkColor backgroundColor=SK_ColorWHITE)
#define DEF_SIMPLE_GM(NAME, CANVAS, W, H)
SK_API sk_sp< SkImage > DeferredFromEncodedData(sk_sp< SkData > encoded, std::optional< SkAlphaType > alphaType=std::nullopt)
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)
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
font
Font Metadata and Metrics.
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static constexpr SkISize Make(int32_t w, int32_t h)
std::shared_ptr< const fml::Mapping > data