138 {
142 };
147 };
152 };
153
159 continue;
160 }
162 if (dContext) {
164 }
171 }
172 }
173 }
176 }
177 }
178 }
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
@ 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)
virtual GrRecordingContext * recordingContext() const
static sk_sp< SkColorSpace > MakeSRGB()
@ kAllow_CachingHint
allows internally caching decoded and copied pixels
SK_API sk_sp< SkImage > TextureFromImage(GrDirectContext *, const SkImage *, skgpu::Mipmapped=skgpu::Mipmapped::kNo, skgpu::Budgeted=skgpu::Budgeted::kYes)
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_raster_image(SkColorType colorType)
static sk_sp< SkColorSpace > make_small_gamut()