/external/skqp/tests/ |
D | SpecialImageTest.cpp | 57 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, in test_image() 145 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster( in DEF_TEST() 152 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm)); in DEF_TEST() 157 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in DEF_TEST() 167 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage( in test_specialimage_image() 174 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromImage(subset, fullImage, in test_specialimage_image() 180 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in test_specialimage_image() 198 const sk_sp<SkSpecialImage>& orig, in test_texture_backed() 199 const sk_sp<SkSpecialImage>& gpuBacked) { in test_texture_backed() 218 sk_sp<SkSpecialImage> rasterImage(SkSpecialImage::MakeFromRaster( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ImageFilterCacheTest.cpp | 30 const sk_sp<SkSpecialImage>& image, in test_find_existing() 31 const sk_sp<SkSpecialImage>& subset) { in test_find_existing() 44 sk_sp<SkSpecialImage> foundImage = cache->get(key1, &foundOffset); in test_find_existing() 54 const sk_sp<SkSpecialImage>& image, in test_dont_find_if_diff_key() 55 const sk_sp<SkSpecialImage>& subset) { in test_dont_find_if_diff_key() 79 static void test_internal_purge(skiatest::Reporter* reporter, const sk_sp<SkSpecialImage>& image) { in test_internal_purge() 104 const sk_sp<SkSpecialImage>& image, in test_explicit_purging() 105 const sk_sp<SkSpecialImage>& subset) { in test_explicit_purging() 141 sk_sp<SkSpecialImage> fullImg(SkSpecialImage::MakeFromRaster(full, srcBM)); in DEF_TEST() 145 sk_sp<SkSpecialImage> subsetImg(SkSpecialImage::MakeFromRaster(subset, srcBM)); in DEF_TEST() [all …]
|
D | DeviceTest.cpp | 20 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, const SkBitmap& bm) { in MakeSpecial() 24 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, SkImage* img) { in MakeSpecial() 28 static sk_sp<SkSpecialImage> SnapSpecial(SkBaseDevice* dev) { in SnapSpecial() 47 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(bmDev.get(), bm); 92 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(gpuDev.get(), bm); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/tests/ |
D | SpecialImageTest.cpp | 57 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, in test_image() 145 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster( in DEF_TEST() 152 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm)); in DEF_TEST() 157 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in DEF_TEST() 167 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage( in test_specialimage_image() 174 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromImage(subset, fullImage, in test_specialimage_image() 180 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in test_specialimage_image() 198 const sk_sp<SkSpecialImage>& orig, in test_texture_backed() 199 const sk_sp<SkSpecialImage>& gpuBacked) { in test_texture_backed() 218 sk_sp<SkSpecialImage> rasterImage(SkSpecialImage::MakeFromRaster( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ImageFilterCacheTest.cpp | 30 const sk_sp<SkSpecialImage>& image, in test_find_existing() 31 const sk_sp<SkSpecialImage>& subset) { in test_find_existing() 44 sk_sp<SkSpecialImage> foundImage = cache->get(key1, &foundOffset); in test_find_existing() 54 const sk_sp<SkSpecialImage>& image, in test_dont_find_if_diff_key() 55 const sk_sp<SkSpecialImage>& subset) { in test_dont_find_if_diff_key() 79 static void test_internal_purge(skiatest::Reporter* reporter, const sk_sp<SkSpecialImage>& image) { in test_internal_purge() 104 const sk_sp<SkSpecialImage>& image, in test_explicit_purging() 105 const sk_sp<SkSpecialImage>& subset) { in test_explicit_purging() 141 sk_sp<SkSpecialImage> fullImg(SkSpecialImage::MakeFromRaster(full, srcBM)); in DEF_TEST() 145 sk_sp<SkSpecialImage> subsetImg(SkSpecialImage::MakeFromRaster(subset, srcBM)); in DEF_TEST() [all …]
|
D | DeviceTest.cpp | 20 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, const SkBitmap& bm) { in MakeSpecial() 24 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, SkImage* img) { in MakeSpecial() 28 static sk_sp<SkSpecialImage> SnapSpecial(SkBaseDevice* dev) { in SnapSpecial() 47 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(bmDev.get(), bm); 92 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(gpuDev.get(), bm); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/src/core/ |
D | SkSpecialImage.cpp | 35 class SkSpecialImage_Base : public SkSpecialImage { 54 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0; 65 typedef SkSpecialImage INHERITED; 69 static inline const SkSpecialImage_Base* as_SIB(const SkSpecialImage* image) { in as_SIB() 73 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() function in SkSpecialImage 81 sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrContext* context) { in makeTextureImage() 87 return curContext == context ? sk_sp<SkSpecialImage>(SkRef(this)) : nullptr; in makeTextureImage() 101 return SkSpecialImage::MakeFromRaster(SkIRect::MakeEmpty(), bmp, &this->props()); in makeTextureImage() 115 return SkSpecialImage::MakeDeferredFromGpu(context, in makeTextureImage() 127 void SkSpecialImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) const { in draw() [all …]
|
D | SkSpecialImage.h | 44 class SkSpecialImage : public SkRefCnt { 65 sk_sp<SkSpecialImage> makeTextureImage(GrContext*); 72 static sk_sp<SkSpecialImage> MakeFromImage(const SkIRect& subset, 76 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset, 80 static sk_sp<SkSpecialImage> MakeDeferredFromGpu(GrContext*, 108 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const; 147 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps*);
|
D | SkBlurImageFilter.cpp | 49 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 59 sk_sp<SkSpecialImage> gpuFilter( 60 SkSpecialImage *source, 61 SkVector sigma, const sk_sp<SkSpecialImage> &input, 392 static sk_sp<SkSpecialImage> copy_image_with_bounds( in copy_image_with_bounds() 393 SkSpecialImage *source, const sk_sp<SkSpecialImage> &input, in copy_image_with_bounds() 452 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds() 458 static sk_sp<SkSpecialImage> cpu_blur( in cpu_blur() 460 SkSpecialImage *source, const sk_sp<SkSpecialImage> &input, in cpu_blur() 559 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in cpu_blur() [all …]
|
D | SkImageFilter.cpp | 197 sk_sp<SkSpecialImage> SkImageFilter::filterImage(SkSpecialImage* src, const Context& context, in filterImage() 208 sk_sp<SkSpecialImage> result = context.cache()->get(key, offset); in filterImage() 214 sk_sp<SkSpecialImage> result(this->onFilterImage(src, context, offset)); in filterImage() 295 sk_sp<SkSpecialImage> SkImageFilter::DrawWithFP(GrContext* context, in DrawWithFP() 319 return SkSpecialImage::MakeDeferredFromGpu( in DrawWithFP() 365 sk_sp<SkSpecialImage> SkImageFilter::ImageToColorSpace(SkSpecialImage* src, in ImageToColorSpace() 400 static sk_sp<SkSpecialImage> pad_image(SkSpecialImage* src, in pad_image() 434 sk_sp<SkSpecialImage> SkImageFilter::applyCropRect(const Context& ctx, in applyCropRect() 435 SkSpecialImage* src, in applyCropRect() 448 return sk_sp<SkSpecialImage>(SkRef(src)); in applyCropRect() [all …]
|
D | SkSpecialSurface.cpp | 29 virtual sk_sp<SkSpecialImage> onMakeImageSnapshot() = 0; 55 sk_sp<SkSpecialImage> SkSpecialSurface::makeImageSnapshot() { in makeImageSnapshot() 56 sk_sp<SkSpecialImage> image(as_SB(this)->onMakeImageSnapshot()); in makeImageSnapshot() 84 sk_sp<SkSpecialImage> onMakeImageSnapshot() override { in onMakeImageSnapshot() 85 return SkSpecialImage::MakeFromRaster(this->subset(), fBitmap, &this->props()); in onMakeImageSnapshot() 145 sk_sp<SkSpecialImage> onMakeImageSnapshot() override { in onMakeImageSnapshot() 149 sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeDeferredFromGpu( in onMakeImageSnapshot()
|
/external/skqp/src/core/ |
D | SkSpecialImage.cpp | 35 class SkSpecialImage_Base : public SkSpecialImage { 54 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0; 65 typedef SkSpecialImage INHERITED; 69 static inline const SkSpecialImage_Base* as_SIB(const SkSpecialImage* image) { in as_SIB() 73 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() function in SkSpecialImage 81 sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrContext* context) { in makeTextureImage() 87 return curContext == context ? sk_sp<SkSpecialImage>(SkRef(this)) : nullptr; in makeTextureImage() 100 return SkSpecialImage::MakeFromRaster(SkIRect::MakeEmpty(), bmp, &this->props()); in makeTextureImage() 115 return SkSpecialImage::MakeDeferredFromGpu(context, in makeTextureImage() 127 void SkSpecialImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) const { in draw() [all …]
|
D | SkSpecialImage.h | 44 class SkSpecialImage : public SkRefCnt { 65 sk_sp<SkSpecialImage> makeTextureImage(GrContext*); 72 static sk_sp<SkSpecialImage> MakeFromImage(const SkIRect& subset, 76 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset, 80 static sk_sp<SkSpecialImage> MakeDeferredFromGpu(GrContext*, 108 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const; 147 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps*);
|
D | SkBlurImageFilter.cpp | 49 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 59 sk_sp<SkSpecialImage> gpuFilter( 60 SkSpecialImage *source, 61 SkVector sigma, const sk_sp<SkSpecialImage> &input, 392 static sk_sp<SkSpecialImage> copy_image_with_bounds( in copy_image_with_bounds() 393 SkSpecialImage *source, const sk_sp<SkSpecialImage> &input, in copy_image_with_bounds() 452 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds() 458 static sk_sp<SkSpecialImage> cpu_blur( in cpu_blur() 460 SkSpecialImage *source, const sk_sp<SkSpecialImage> &input, in cpu_blur() 559 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in cpu_blur() [all …]
|
D | SkImageFilter.cpp | 197 sk_sp<SkSpecialImage> SkImageFilter::filterImage(SkSpecialImage* src, const Context& context, in filterImage() 208 sk_sp<SkSpecialImage> result = context.cache()->get(key, offset); in filterImage() 214 sk_sp<SkSpecialImage> result(this->onFilterImage(src, context, offset)); in filterImage() 295 sk_sp<SkSpecialImage> SkImageFilter::DrawWithFP(GrContext* context, in DrawWithFP() 319 return SkSpecialImage::MakeDeferredFromGpu( in DrawWithFP() 365 sk_sp<SkSpecialImage> SkImageFilter::ImageToColorSpace(SkSpecialImage* src, in ImageToColorSpace() 400 static sk_sp<SkSpecialImage> pad_image(SkSpecialImage* src, in pad_image() 434 sk_sp<SkSpecialImage> SkImageFilter::applyCropRect(const Context& ctx, in applyCropRect() 435 SkSpecialImage* src, in applyCropRect() 448 return sk_sp<SkSpecialImage>(SkRef(src)); in applyCropRect() [all …]
|
D | SkSpecialSurface.cpp | 29 virtual sk_sp<SkSpecialImage> onMakeImageSnapshot() = 0; 55 sk_sp<SkSpecialImage> SkSpecialSurface::makeImageSnapshot() { in makeImageSnapshot() 56 sk_sp<SkSpecialImage> image(as_SB(this)->onMakeImageSnapshot()); in makeImageSnapshot() 84 sk_sp<SkSpecialImage> onMakeImageSnapshot() override { in onMakeImageSnapshot() 85 return SkSpecialImage::MakeFromRaster(this->subset(), fBitmap, &this->props()); in onMakeImageSnapshot() 145 sk_sp<SkSpecialImage> onMakeImageSnapshot() override { in onMakeImageSnapshot() 149 sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeDeferredFromGpu( in onMakeImageSnapshot()
|
/external/skqp/include/core/ |
D | SkImageFilter.h | 25 class SkSpecialImage; variable 143 sk_sp<SkSpecialImage> filterImage(SkSpecialImage* src, const Context& context, 165 static sk_sp<SkSpecialImage> DrawWithFP(GrContext* context, 319 virtual sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* src, const Context&, 354 sk_sp<SkSpecialImage> filterInput(int index, 355 SkSpecialImage* src, 392 sk_sp<SkSpecialImage> applyCropRect(const Context&, SkSpecialImage* src, SkIPoint* srcOffset, 409 static sk_sp<SkSpecialImage> ImageToColorSpace(SkSpecialImage* src, const OutputProperties&);
|
/external/skia/include/core/ |
D | SkImageFilter.h | 25 class SkSpecialImage; variable 143 sk_sp<SkSpecialImage> filterImage(SkSpecialImage* src, const Context& context, 165 static sk_sp<SkSpecialImage> DrawWithFP(GrContext* context, 319 virtual sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* src, const Context&, 354 sk_sp<SkSpecialImage> filterInput(int index, 355 SkSpecialImage* src, 392 sk_sp<SkSpecialImage> applyCropRect(const Context&, SkSpecialImage* src, SkIPoint* srcOffset, 409 static sk_sp<SkSpecialImage> ImageToColorSpace(SkSpecialImage* src, const OutputProperties&);
|
/external/skia/src/effects/ |
D | SkXfermodeImageFilter.cpp | 41 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 48 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source, 49 sk_sp<SkSpecialImage> background, 51 sk_sp<SkSpecialImage> foreground, 59 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const; 113 sk_sp<SkSpecialImage> SkXfermodeImageFilter_Base::onFilterImage(SkSpecialImage* source, in onFilterImage() 117 sk_sp<SkSpecialImage> background(this->filterInput(0, source, ctx, &backgroundOffset)); in onFilterImage() 120 sk_sp<SkSpecialImage> foreground(this->filterInput(1, source, ctx, &foregroundOffset)); in onFilterImage() 235 void SkXfermodeImageFilter_Base::drawForeground(SkCanvas* canvas, SkSpecialImage* img, in drawForeground() 271 sk_sp<SkSpecialImage> SkXfermodeImageFilter_Base::filterImageGPU( in filterImageGPU() [all …]
|
D | SkArithmeticImageFilter.cpp | 44 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 50 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source, 51 sk_sp<SkSpecialImage> background, 53 sk_sp<SkSpecialImage> foreground, 67 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const; 148 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::onFilterImage(SkSpecialImage* source, in onFilterImage() 152 sk_sp<SkSpecialImage> background(this->filterInput(0, source, ctx, &backgroundOffset)); in onFilterImage() 155 sk_sp<SkSpecialImage> foreground(this->filterInput(1, source, ctx, &foregroundOffset)); in onFilterImage() 282 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::filterImageGPU( in filterImageGPU() 283 SkSpecialImage* source, in filterImageGPU() [all …]
|
D | SkComposeImageFilter.cpp | 34 sk_sp<SkSpecialImage> SkComposeImageFilter::onFilterImage(SkSpecialImage* source, in onFilterImage() 44 sk_sp<SkSpecialImage> inner(this->filterInput(1, source, innerContext, &innerOffset)); in onFilterImage() 56 sk_sp<SkSpecialImage> outer(this->filterInput(0, inner.get(), outerContext, &outerOffset)); in onFilterImage()
|
/external/skqp/src/effects/ |
D | SkXfermodeImageFilter.cpp | 41 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 48 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source, 49 sk_sp<SkSpecialImage> background, 51 sk_sp<SkSpecialImage> foreground, 59 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const; 113 sk_sp<SkSpecialImage> SkXfermodeImageFilter_Base::onFilterImage(SkSpecialImage* source, in onFilterImage() 117 sk_sp<SkSpecialImage> background(this->filterInput(0, source, ctx, &backgroundOffset)); in onFilterImage() 120 sk_sp<SkSpecialImage> foreground(this->filterInput(1, source, ctx, &foregroundOffset)); in onFilterImage() 235 void SkXfermodeImageFilter_Base::drawForeground(SkCanvas* canvas, SkSpecialImage* img, in drawForeground() 271 sk_sp<SkSpecialImage> SkXfermodeImageFilter_Base::filterImageGPU( in filterImageGPU() [all …]
|
D | SkArithmeticImageFilter.cpp | 44 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 50 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source, 51 sk_sp<SkSpecialImage> background, 53 sk_sp<SkSpecialImage> foreground, 67 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const; 148 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::onFilterImage(SkSpecialImage* source, in onFilterImage() 152 sk_sp<SkSpecialImage> background(this->filterInput(0, source, ctx, &backgroundOffset)); in onFilterImage() 155 sk_sp<SkSpecialImage> foreground(this->filterInput(1, source, ctx, &foregroundOffset)); in onFilterImage() 282 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::filterImageGPU( in filterImageGPU() 283 SkSpecialImage* source, in filterImageGPU() [all …]
|
/external/skia/src/gpu/ |
D | SkGpuDevice.h | 27 class SkSpecialImage; variable 115 void drawSpecial(SkSpecialImage*, int left, int top, const SkPaint& paint, 117 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; 118 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override; 119 sk_sp<SkSpecialImage> snapSpecial() override; 182 sk_sp<SkSpecialImage> filterTexture(SkSpecialImage*,
|
/external/skqp/src/gpu/ |
D | SkGpuDevice.h | 27 class SkSpecialImage; variable 115 void drawSpecial(SkSpecialImage*, int left, int top, const SkPaint& paint, 117 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; 118 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override; 119 sk_sp<SkSpecialImage> snapSpecial() override; 182 sk_sp<SkSpecialImage> filterTexture(SkSpecialImage*,
|