196 {
198 *errorMsg = "This gm is only interesting in color correct modes.";
200 }
201
205 };
210 };
215 };
219 };
220
228 dstColorSpace, hint);
229 canvas->
translate(0.0f, (
float) kEncodedHeight + 1);
230 }
231 }
232 }
234 canvas->
translate((
float) kEncodedWidth + 1, 0.0f);
235 }
237 }
@ 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
void translate(SkScalar dx, SkScalar dy)
SkImageInfo imageInfo() const
static sk_sp< SkColorSpace > MakeSRGB()
@ kDisallow_CachingHint
disallows internally caching decoded and copied pixels
@ kAllow_CachingHint
allows internally caching decoded and copied pixels
sk_sp< const SkImage > image
static void draw_image(GrDirectContext *dContext, SkCanvas *canvas, SkImage *image, SkColorType dstColorType, SkAlphaType dstAlphaType, sk_sp< SkColorSpace > dstColorSpace, SkImage::CachingHint hint)
static sk_sp< SkColorSpace > make_wide_gamut()
static sk_sp< SkImage > make_codec_image()
static sk_sp< SkColorSpace > make_small_gamut()
SkColorSpace * colorSpace() const