25 fName.
printf(
"writepix_%s_%s_%s",
28 cs ?
"srgb" :
"null");
44 for (
int loop = 0; loop < loops; ++loop) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
constexpr SkColor SK_ColorBLACK
DEF_BENCH(return new WritePixelsBench(kRGBA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::MakeSRGB());) DEF_BENCH(return new WritePixelsBench(kRGBA_8888_SkColorType
void allocPixels(const SkImageInfo &info, size_t rowBytes)
void eraseColor(SkColor4f) const
bool writePixels(const SkImageInfo &info, const void *pixels, size_t rowBytes, int x, int y)
virtual SkISize getBaseLayerSize() const
static sk_sp< SkColorSpace > MakeSRGB()
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
void onDraw(int loops, SkCanvas *canvas) override
WritePixelsBench(SkColorType ct, SkAlphaType at, sk_sp< SkColorSpace > cs)
const char * onGetName() override
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 Make(int width, int height, SkColorType ct, SkAlphaType at)