276 {
279
282 port->translate(30, 30);
286
287 port->saveLayer({50, 50, 100, 100}, 0x80);
290
291 port->clip({150, 50, 200, 200});
292 port->drawRect({0, 0, 256, 256}, 0xFFCCCCCC);
293 };
294
295
296
297
298
300 std::unique_ptr<SkCanvas> nativeCanvas =
302 MyPort nativePort(nativeCanvas.get());
303 doDraw(&nativePort);
304
306 nativeCanvas->peekPixels(&pm);
308}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
static std::unique_ptr< SkCanvas > MakeCanvas(std::unique_ptr< SkRasterHandleAllocator >, const SkImageInfo &, const Rec *rec=nullptr, const SkSurfaceProps *props=nullptr)
SK_API sk_sp< SkImage > RasterFromPixmapCopy(const SkPixmap &pixmap)
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service port
static SkImageInfo MakeN32Premul(int width, int height)