• Home
  • Raw
  • Download

Lines Matching refs:SkImage

43     sk_sp<SkImage> imgR = surf->makeImageSnapshot();  in test_surface()
46 sk_sp<SkImage> imgR2 = surf->makeImageSnapshot(); in test_surface()
51 sk_sp<SkImage> imgG = surf->makeImageSnapshot(); in test_surface()
165 static void show_scaled_pixels(SkCanvas* canvas, SkImage* image) { in show_scaled_pixels()
175 const SkImage::CachingHint chints[] = { in show_scaled_pixels()
176 SkImage::kAllow_CachingHint, SkImage::kDisallow_CachingHint, in show_scaled_pixels()
202 static sk_sp<SkImage> make_raster(const SkImageInfo& info, GrContext*, void (*draw)(SkCanvas*)) { in make_raster()
208 static sk_sp<SkImage> make_picture(const SkImageInfo& info, GrContext*, void (*draw)(SkCanvas*)) { in make_picture()
211 return SkImage::MakeFromPicture(recorder.finishRecordingAsPicture(), in make_picture()
212 info.dimensions(), nullptr, nullptr, SkImage::BitDepth::kU8, in make_picture()
216 static sk_sp<SkImage> make_codec(const SkImageInfo& info, GrContext*, void (*draw)(SkCanvas*)) { in make_codec()
217 sk_sp<SkImage> image(make_raster(info, nullptr, draw)); in make_codec()
218 return SkImage::MakeFromEncoded(image->encodeToData()); in make_codec()
221 static sk_sp<SkImage> make_gpu(const SkImageInfo& info, GrContext* ctx, void (*draw)(SkCanvas*)) { in make_gpu()
229 typedef sk_sp<SkImage> (*ImageMakerProc)(const SkImageInfo&, GrContext*, void (*)(SkCanvas*));
251 sk_sp<SkImage> image(proc(info, canvas->getGrContext(), draw_contents)); in onDraw()
286 std::function<sk_sp<SkImage>()> imageFactories[] = {
289 return SkImage::MakeFromBitmap(bmp); in __anonbc1d69080302()
294 return SkImage::MakeFromEncoded(std::move(src)); in __anonbc1d69080402()
299 return SkImage::MakeFromEncoded(std::move(src)); in __anonbc1d69080502()
307 return SkImage::MakeFromPicture(recorder.finishRecordingAsPicture(), in __anonbc1d69080602()
309 SkImage::BitDepth::kU8, srgbColorSpace); in __anonbc1d69080602()
312 [context, render_image]() -> sk_sp<SkImage> { in __anonbc1d69080702()
329 sk_sp<SkImage> texImage(image->makeTextureImage(context,
340 canvas->drawImage(SkImage::MakeRasterCopy(pm), x, y, nullptr); in draw_pixmap()
377 static sk_sp<SkImage> make_lazy_image(SkSurface* surf) { in make_lazy_image()
383 return SkImage::MakeFromEncoded(std::move(data)); in make_lazy_image()
388 static sk_sp<SkImage> serial_deserial(SkImage* img) { in serial_deserial()