6 std::vector<int32_t> pixels;
11 SkPixmap srcPixmap(srcInfo, (
const void*) &pixels.front(),
width * 4);
12 SkColor gradColors[] = { 0xFFAA3300, 0x7F881122 };
13 SkPoint gradPoints[] = { { 0, 0 }, { 256, 0 } };
18 bitmap.installPixels(srcPixmap);
22 std::vector<int32_t> dstPixels;
27 bitmap.installPixels(dstPixmap);
REG_FIDDLE(Pixmap_readPixels, 256, 128, false, 0)
@ kARGB_4444_SkColorType
pixel with 4 bits for alpha, red, green, blue; in 16-bit word
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
bool readPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes) const
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 SkImageInfo MakeN32Premul(int width, int height)
SkImageInfo makeColorType(SkColorType newColorType) const
static constexpr SkRect MakeWH(float w, float h)