28 {
31 {
34
36 }
37 {
38 size_t rowBytes =
info.minRowBytes() - 1;
39 size_t size =
info.computeByteSize(rowBytes);
43
45 }
46 {
47 size_t rowBytes =
info.minRowBytes() +
info.bytesPerPixel();
48 size_t size =
info.computeByteSize(rowBytes) - 1;
52
54 }
55 size_t rowBytes =
info.minRowBytes() +
info.bytesPerPixel();
56 size_t size =
info.computeByteSize(rowBytes) + 9;
57 {
59 auto pr = sk_make_sp<SkPixelRef>(
info.width(),
info.height(), memory.get(), rowBytes);
62 }
63 {
68 }
69 {
70 void*
addr =
static_cast<void*
>(
new uint8_t[
size]);
73 nullptr));
76 }
77 {
86 pr.reset(nullptr);
87
89 }
90 {
91 void*
addr =
static_cast<void*
>(
new uint8_t[
size]);
95 nullptr));
97 }
98 {
107 }
108}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void delete_uint8_proc(void *ptr, void *)
static void set_to_one_proc(void *, void *context)
sk_sp< SkPixelRef > SkMakePixelRefWithProc(int width, int height, size_t rowBytes, void *addr, void(*releaseProc)(void *addr, void *ctx), void *ctx)
#define REPORTER_ASSERT(r, cond,...)
static sk_sp< SkData > MakeUninitialized(size_t length)
const void * data() const
SK_API sk_sp< SkPixelRef > MakeWithData(const SkImageInfo &, size_t rowBytes, sk_sp< SkData > data)
SK_API sk_sp< SkPixelRef > MakeAllocate(const SkImageInfo &, size_t rowBytes)
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)
std::shared_ptr< const fml::Mapping > data