24 rgba.eraseColor(yellow);
25 bgra.eraseColor(yellow);
29 c->drawImage(
rgba.asImage(), 0,0);
30 c->drawImage(
bgra.asImage(), 0,1);
33 auto grade = [&](
int x,
int y){
39 if (!c->readPixels(bm,
x,
y)) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static const uint32_t bgra[kNumPixels]
static const uint32_t rgba[kNumPixels]
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
@ kUnknown_SkColorType
uninitialized
void allocPixels(const SkImageInfo &info, size_t rowBytes)
uint8_t * getAddr8(int x, int y) const
static sk_sp< SkColorSpace > MakeSRGB()
void MarkGMGood(SkCanvas *canvas, SkScalar x, SkScalar y)
void MarkGMBad(SkCanvas *canvas, SkScalar x, SkScalar y)
SIN Vec< N, float > abs(const Vec< N, float > &x)
DEF_SIMPLE_GM(skbug_9819, c, 256, 256)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)