21 : fCT(ct), fAT(at), fCS(cs)
23 fName.
printf(
"readpix_%s_%s_%s",
26 cs ?
"srgb" :
"null");
35 canvas->
clear(0x80000000);
43 for (
int i = 0;
i < loops;
i++) {
74 fSrc.allocPixels(
info);
76 fDst.allocPixels(
info.makeDimensions(
info.dimensions()));
80 return "orient_pixmap";
84 return backend == Backend::kNonRendering;
89 fSrc.peekPixels(&
src);
91 for (
int i = 0;
i < loops; ++
i) {
109 fName.printf(
"getalphaf_%s", label);
115 fBM.eraseColor(0x88112233);
119 return fName.c_str();
123 return backend == Backend::kNonRendering;
127 for (
int i = 0;
i < loops; ++
i) {
128 for (
int y = 0;
y < fBM.height(); ++
y) {
129 for (
int x = 0;
x < fBM.width(); ++
x) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
DEF_BENCH(return new ReadPixBench(kRGBA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::MakeSRGB());) DEF_BENCH(return new ReadPixBench(kRGBA_8888_SkColorType
@ 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_F16_SkColorType
pixel with half floats for red, green, blue, alpha;
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
@ kRGB_888x_SkColorType
pixel with 8 bits each for red, green, blue; in 32-bit word
@ kRGBA_F32_SkColorType
pixel using C float for red, green, blue, alpha; in 128-bit word
constexpr SkColor SK_ColorBLACK
@ kTopRight_SkEncodedOrigin
#define INHERITED(method,...)
const char * onGetName() override
GetAlphafBench(SkColorType ct, const char label[])
void onDelayedSetup() override
void onDraw(int loops, SkCanvas *) override
bool isSuitableFor(Backend backend) override
bool isSuitableFor(Backend backend) override
const char * onGetName() override
void onDraw(int loops, SkCanvas *) override
void onDelayedSetup() override
const char * onGetName() override
ReadPixBench(SkColorType ct, SkAlphaType at, sk_sp< SkColorSpace > cs)
void onDraw(int loops, SkCanvas *canvas) override
virtual SkISize getBaseLayerSize() const
void clear(SkColor color)
bool readPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY)
static sk_sp< SkColorSpace > MakeSRGB()
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
SK_API bool Orient(const SkPixmap &dst, const SkPixmap &src, SkEncodedOrigin origin)
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)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)