Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_tryAllocPixels_4, 256, 100, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_tryAllocPixels_4 |
, |
|
|
256 |
, |
|
|
100 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Bitmap_tryAllocPixels_4.cpp.
4 {
6public:
9 }
10 ~LargePixelRef() override {
11 delete[] (
char* ) this->
pixels();
12 }
13};
15public:
18 uint64_t rowBytes =
info.minRowBytes64();
21 if (
nullptr ==
addr) {
22 return false;
23 }
25 if (!pr) {
26 return false;
27 }
28 bitmap->setPixelRef(std::move(pr), 0, 0);
29 return true;
30 }
31};
32
34 LargeAllocator largeAllocator;
39 if (
bitmap.tryAllocPixels(&largeAllocator)) {
40 bitmap.eraseColor(0xff55aa33);
42 }
43}
44}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kOpaque_SkAlphaType
pixel is opaque
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
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 MakeN32(int width, int height, SkAlphaType at)