Home | History | Annotate | Download | only in tests

Lines Matching refs:SkSpecialImage

13 #include "SkSpecialImage.h"
27 // It then wraps them in an SkSpecialImage with only the center (red) region being active.
28 // It then draws the SkSpecialImage to a full sized (all blue) canvas and checks that none
54 // Basic test of the SkSpecialImage public API (e.g., peekTexture, peekPixels & draw)
55 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter,
143 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster(
150 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm));
155 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset));
165 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage(
172 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromImage(subset, fullImage,
178 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset));
196 const sk_sp<SkSpecialImage>& orig,
197 const sk_sp<SkSpecialImage>& gpuBacked) {
206 // Test out the SkSpecialImage::makeTextureImage entry point
215 sk_sp<SkSpecialImage> rasterImage(SkSpecialImage::MakeFromRaster(
221 sk_sp<SkSpecialImage> fromRaster(rasterImage->makeTextureImage(context));
226 sk_sp<SkSpecialImage> subRasterImage(rasterImage->makeSubset(subset));
228 sk_sp<SkSpecialImage> fromSubRaster(subRasterImage->makeTextureImage(context));
244 sk_sp<SkSpecialImage> gpuImage(SkSpecialImage::MakeDeferredFromGpu(
251 sk_sp<SkSpecialImage> fromGPU(gpuImage->makeTextureImage(context));
256 sk_sp<SkSpecialImage> subGPUImage(gpuImage->makeSubset(subset));
258 sk_sp<SkSpecialImage> fromSubGPU(subGPUImage->makeTextureImage(context));
277 sk_sp<SkSpecialImage> fullSImg(SkSpecialImage::MakeDeferredFromGpu(
286 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeDeferredFromGpu(
294 sk_sp<SkSpecialImage> subSImg2(fullSImg->makeSubset(subset));
316 sk_sp<SkSpecialImage> fullSImg(SkSpecialImage::MakeDeferredFromGpu(
325 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeDeferredFromGpu(
333 sk_sp<SkSpecialImage> subSImg2(fullSImg->makeSubset(subset));