Home
last modified time | relevance | path

Searched refs:SkSpecialImage (Results 1 – 25 of 126) sorted by relevance

123456

/external/skia/tests/
DSpecialImageTest.cpp56 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, in test_image()
143 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster( in DEF_TEST()
150 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm)); in DEF_TEST()
155 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in DEF_TEST()
165 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage( in test_specialimage_image()
173 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromImage(nullptr, subset, fullImage)); in test_specialimage_image()
178 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in test_specialimage_image()
188 const sk_sp<SkSpecialImage>& orig, in test_texture_backed()
189 const sk_sp<SkSpecialImage>& gpuBacked) { in test_texture_backed()
208 sk_sp<SkSpecialImage> rasterImage(SkSpecialImage::MakeFromRaster( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DImageFilterCacheTest.cpp38 const sk_sp<SkSpecialImage>& image, in test_find_existing()
39 const sk_sp<SkSpecialImage>& subset) { in test_find_existing()
53 sk_sp<SkSpecialImage> foundImage = cache->get(key1, &foundOffset); in test_find_existing()
63 const sk_sp<SkSpecialImage>& image, in test_dont_find_if_diff_key()
64 const sk_sp<SkSpecialImage>& subset) { in test_dont_find_if_diff_key()
89 static void test_internal_purge(skiatest::Reporter* reporter, const sk_sp<SkSpecialImage>& image) { in test_internal_purge()
116 const sk_sp<SkSpecialImage>& image, in test_explicit_purging()
117 const sk_sp<SkSpecialImage>& subset) { in test_explicit_purging()
155 sk_sp<SkSpecialImage> fullImg(SkSpecialImage::MakeFromRaster(full, srcBM)); in DEF_TEST()
159 sk_sp<SkSpecialImage> subsetImg(SkSpecialImage::MakeFromRaster(subset, srcBM)); in DEF_TEST()
[all …]
DDeviceTest.cpp26 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, const SkBitmap& bm) { in MakeSpecial()
30 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, SkImage* img) { in MakeSpecial()
34 static sk_sp<SkSpecialImage> SnapSpecial(SkBaseDevice* dev) { in SnapSpecial()
53 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(bmDev.get(), bm);
96 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(gpuDev.get(), bm); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/tests/
DSpecialImageTest.cpp56 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, in test_image()
143 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster( in DEF_TEST()
150 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm)); in DEF_TEST()
155 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in DEF_TEST()
165 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage( in test_specialimage_image()
173 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromImage(nullptr, subset, fullImage)); in test_specialimage_image()
178 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in test_specialimage_image()
188 const sk_sp<SkSpecialImage>& orig, in test_texture_backed()
189 const sk_sp<SkSpecialImage>& gpuBacked) { in test_texture_backed()
208 sk_sp<SkSpecialImage> rasterImage(SkSpecialImage::MakeFromRaster( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DImageFilterCacheTest.cpp38 const sk_sp<SkSpecialImage>& image, in test_find_existing()
39 const sk_sp<SkSpecialImage>& subset) { in test_find_existing()
53 sk_sp<SkSpecialImage> foundImage = cache->get(key1, &foundOffset); in test_find_existing()
63 const sk_sp<SkSpecialImage>& image, in test_dont_find_if_diff_key()
64 const sk_sp<SkSpecialImage>& subset) { in test_dont_find_if_diff_key()
89 static void test_internal_purge(skiatest::Reporter* reporter, const sk_sp<SkSpecialImage>& image) { in test_internal_purge()
116 const sk_sp<SkSpecialImage>& image, in test_explicit_purging()
117 const sk_sp<SkSpecialImage>& subset) { in test_explicit_purging()
155 sk_sp<SkSpecialImage> fullImg(SkSpecialImage::MakeFromRaster(full, srcBM)); in DEF_TEST()
159 sk_sp<SkSpecialImage> subsetImg(SkSpecialImage::MakeFromRaster(subset, srcBM)); in DEF_TEST()
[all …]
DDeviceTest.cpp26 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, const SkBitmap& bm) { in MakeSpecial()
30 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, SkImage* img) { in MakeSpecial()
34 static sk_sp<SkSpecialImage> SnapSpecial(SkBaseDevice* dev) { in SnapSpecial()
53 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(bmDev.get(), bm);
96 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(gpuDev.get(), bm); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/src/core/
DSkSpecialImage.cpp35 class SkSpecialImage_Base : public SkSpecialImage {
54 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0;
66 typedef SkSpecialImage INHERITED;
70 static inline const SkSpecialImage_Base* as_SIB(const SkSpecialImage* image) { in as_SIB()
74 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() function in SkSpecialImage
82 sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrContext* context) { in makeTextureImage()
88 return curContext == context ? sk_sp<SkSpecialImage>(SkRef(this)) : nullptr; in makeTextureImage()
102 return SkSpecialImage::MakeFromRaster(SkIRect::MakeEmpty(), bmp, &this->props()); in makeTextureImage()
116 return SkSpecialImage::MakeDeferredFromGpu(context, in makeTextureImage()
128 void SkSpecialImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) const { in draw()
[all …]
DSkSpecialImage.h44 class SkSpecialImage : public SkRefCnt {
65 sk_sp<SkSpecialImage> makeTextureImage(GrContext*);
72 static sk_sp<SkSpecialImage> MakeFromImage(GrContext*,
76 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
79 static sk_sp<SkSpecialImage> CopyFromRaster(const SkIRect& subset,
83 static sk_sp<SkSpecialImage> MakeDeferredFromGpu(GrContext*,
112 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
151 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps*);
DSkImageFilter.cpp161 sk_sp<SkSpecialImage> SkImageFilter::filterImage(SkSpecialImage* src, const Context& context, in filterImage()
172 sk_sp<SkSpecialImage> result = context.cache()->get(key, offset); in filterImage()
178 sk_sp<SkSpecialImage> result(this->onFilterImage(src, context, offset)); in filterImage()
241 sk_sp<SkSpecialImage> SkImageFilter::DrawWithFP(GrContext* context, in DrawWithFP()
269 return SkSpecialImage::MakeDeferredFromGpu( in DrawWithFP()
315 sk_sp<SkSpecialImage> SkImageFilter::ImageToColorSpace(SkSpecialImage* src, in ImageToColorSpace()
347 static sk_sp<SkSpecialImage> pad_image(SkSpecialImage* src, in pad_image()
381 sk_sp<SkSpecialImage> SkImageFilter::applyCropRectAndPad(const Context& ctx, in applyCropRectAndPad()
382 SkSpecialImage* src, in applyCropRectAndPad()
393 return sk_sp<SkSpecialImage>(SkRef(src)); in applyCropRectAndPad()
[all …]
DSkSpecialSurface.cpp29 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()
146 sk_sp<SkSpecialImage> onMakeImageSnapshot() override { in onMakeImageSnapshot()
150 sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeDeferredFromGpu( in onMakeImageSnapshot()
/external/skia/src/core/
DSkSpecialImage.cpp37 class SkSpecialImage_Base : public SkSpecialImage {
56 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0;
68 typedef SkSpecialImage INHERITED;
72 static inline const SkSpecialImage_Base* as_SIB(const SkSpecialImage* image) { in as_SIB()
76 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() function in SkSpecialImage
84 sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrRecordingContext* context) { in makeTextureImage()
90 return curContext->priv().matches(context) ? sk_sp<SkSpecialImage>(SkRef(this)) : nullptr; in makeTextureImage()
104 return SkSpecialImage::MakeFromRaster(SkIRect::MakeEmpty(), bmp, &this->props()); in makeTextureImage()
118 return SkSpecialImage::MakeDeferredFromGpu(context, in makeTextureImage()
130 void SkSpecialImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) const { in draw()
[all …]
DSkSpecialImage.h44 class SkSpecialImage : public SkRefCnt {
65 sk_sp<SkSpecialImage> makeTextureImage(GrRecordingContext*);
72 static sk_sp<SkSpecialImage> MakeFromImage(GrRecordingContext*,
76 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
79 static sk_sp<SkSpecialImage> CopyFromRaster(const SkIRect& subset,
83 static sk_sp<SkSpecialImage> MakeDeferredFromGpu(GrRecordingContext*,
112 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
151 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps*);
DSkImageFilter.cpp164 sk_sp<SkSpecialImage> SkImageFilter::filterImage(SkSpecialImage* src, const Context& context, in filterImage()
175 sk_sp<SkSpecialImage> result = context.cache()->get(key, offset); in filterImage()
181 sk_sp<SkSpecialImage> result(this->onFilterImage(src, context, offset)); in filterImage()
244 sk_sp<SkSpecialImage> SkImageFilter::DrawWithFP(GrRecordingContext* context, in DrawWithFP()
272 return SkSpecialImage::MakeDeferredFromGpu( in DrawWithFP()
318 sk_sp<SkSpecialImage> SkImageFilter::ImageToColorSpace(SkSpecialImage* src, in ImageToColorSpace()
350 static sk_sp<SkSpecialImage> pad_image(SkSpecialImage* src, in pad_image()
384 sk_sp<SkSpecialImage> SkImageFilter::applyCropRectAndPad(const Context& ctx, in applyCropRectAndPad()
385 SkSpecialImage* src, in applyCropRectAndPad()
396 return sk_sp<SkSpecialImage>(SkRef(src)); in applyCropRectAndPad()
[all …]
DSkSpecialSurface.cpp29 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()
150 sk_sp<SkSpecialImage> onMakeImageSnapshot() override { in onMakeImageSnapshot()
154 sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeDeferredFromGpu( in onMakeImageSnapshot()
DSkBitmapDevice.h108 void drawSpecial(SkSpecialImage*, int x, int y, const SkPaint&,
110 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override;
111 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override;
112 sk_sp<SkSpecialImage> snapSpecial() override;
115 sk_sp<SkSpecialImage> snapBackImage(const SkIRect&) override;
/external/skqp/src/effects/imagefilters/
DSkXfermodeImageFilter.cpp38 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
46 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source,
47 sk_sp<SkSpecialImage> background,
49 sk_sp<SkSpecialImage> foreground,
57 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const;
111 sk_sp<SkSpecialImage> SkXfermodeImageFilter_Base::onFilterImage(SkSpecialImage* source, in onFilterImage()
115 sk_sp<SkSpecialImage> background(this->filterInput(0, source, ctx, &backgroundOffset)); in onFilterImage()
118 sk_sp<SkSpecialImage> foreground(this->filterInput(1, source, ctx, &foregroundOffset)); in onFilterImage()
235 void SkXfermodeImageFilter_Base::drawForeground(SkCanvas* canvas, SkSpecialImage* img, in drawForeground()
253 sk_sp<SkSpecialImage> SkXfermodeImageFilter_Base::filterImageGPU( in filterImageGPU()
[all …]
DSkBlurImageFilter.cpp46 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
59 sk_sp<SkSpecialImage> gpuFilter(
60 SkSpecialImage *source, SkVector sigma, const sk_sp<SkSpecialImage> &input,
390 static sk_sp<SkSpecialImage> copy_image_with_bounds( in copy_image_with_bounds()
391 SkSpecialImage *source, const sk_sp<SkSpecialImage> &input, in copy_image_with_bounds()
450 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds()
456 static sk_sp<SkSpecialImage> cpu_blur( in cpu_blur()
458 SkSpecialImage *source, const sk_sp<SkSpecialImage> &input, in cpu_blur()
559 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in cpu_blur()
564 sk_sp<SkSpecialImage> SkBlurImageFilterImpl::onFilterImage(SkSpecialImage* source, in onFilterImage()
[all …]
DSkArithmeticImageFilter.cpp55 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
62 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source,
63 sk_sp<SkSpecialImage> background,
65 sk_sp<SkSpecialImage> foreground,
79 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const;
165 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::onFilterImage(SkSpecialImage* source, in onFilterImage()
169 sk_sp<SkSpecialImage> background(this->filterInput(0, source, ctx, &backgroundOffset)); in onFilterImage()
172 sk_sp<SkSpecialImage> foreground(this->filterInput(1, source, ctx, &foregroundOffset)); in onFilterImage()
285 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::filterImageGPU( in filterImageGPU()
286 SkSpecialImage* source, in filterImageGPU()
[all …]
/external/skia/src/effects/imagefilters/
DSkXfermodeImageFilter.cpp40 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()
237 void SkXfermodeImageFilter_Base::drawForeground(SkCanvas* canvas, SkSpecialImage* img, in drawForeground()
255 sk_sp<SkSpecialImage> SkXfermodeImageFilter_Base::filterImageGPU( in filterImageGPU()
[all …]
DSkBlurImageFilter.cpp46 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
59 sk_sp<SkSpecialImage> gpuFilter(
60 SkSpecialImage *source, SkVector sigma, const sk_sp<SkSpecialImage> &input,
390 static sk_sp<SkSpecialImage> copy_image_with_bounds( in copy_image_with_bounds()
391 SkSpecialImage *source, const sk_sp<SkSpecialImage> &input, in copy_image_with_bounds()
450 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds()
456 static sk_sp<SkSpecialImage> cpu_blur( in cpu_blur()
458 SkSpecialImage *source, const sk_sp<SkSpecialImage> &input, in cpu_blur()
559 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in cpu_blur()
564 sk_sp<SkSpecialImage> SkBlurImageFilterImpl::onFilterImage(SkSpecialImage* source, in onFilterImage()
[all …]
DSkArithmeticImageFilter.cpp56 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
63 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source,
64 sk_sp<SkSpecialImage> background,
66 sk_sp<SkSpecialImage> foreground,
80 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const;
166 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::onFilterImage(SkSpecialImage* source, in onFilterImage()
170 sk_sp<SkSpecialImage> background(this->filterInput(0, source, ctx, &backgroundOffset)); in onFilterImage()
173 sk_sp<SkSpecialImage> foreground(this->filterInput(1, source, ctx, &foregroundOffset)); in onFilterImage()
286 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::filterImageGPU( in filterImageGPU()
287 SkSpecialImage* source, in filterImageGPU()
[all …]
/external/skqp/include/core/
DSkImageFilter.h26 class SkSpecialImage; variable
144 sk_sp<SkSpecialImage> filterImage(SkSpecialImage* src, const Context& context,
170 static sk_sp<SkSpecialImage> DrawWithFP(GrContext* context,
335 virtual sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* src, const Context&,
378 sk_sp<SkSpecialImage> filterInput(int index,
379 SkSpecialImage* src,
416 sk_sp<SkSpecialImage> applyCropRectAndPad(const Context&, SkSpecialImage* src,
433 static sk_sp<SkSpecialImage> ImageToColorSpace(SkSpecialImage* src, const OutputProperties&);
/external/skia/include/core/
DSkImageFilter.h26 class SkSpecialImage; variable
144 sk_sp<SkSpecialImage> filterImage(SkSpecialImage* src, const Context& context,
170 static sk_sp<SkSpecialImage> DrawWithFP(GrRecordingContext* context,
335 virtual sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* src, const Context&,
378 sk_sp<SkSpecialImage> filterInput(int index,
379 SkSpecialImage* src,
416 sk_sp<SkSpecialImage> applyCropRectAndPad(const Context&, SkSpecialImage* src,
433 static sk_sp<SkSpecialImage> ImageToColorSpace(SkSpecialImage* src, const OutputProperties&);
/external/skia/src/gpu/
DSkGpuDevice.h28 class SkSpecialImage; variable
113 void drawSpecial(SkSpecialImage*, int left, int top, const SkPaint& paint,
115 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override;
116 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override;
117 sk_sp<SkSpecialImage> snapSpecial() override;
118 sk_sp<SkSpecialImage> snapBackImage(const SkIRect&) override;
198 sk_sp<SkSpecialImage> filterTexture(SkSpecialImage*,
/external/skqp/src/gpu/
DSkGpuDevice.h28 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;
120 sk_sp<SkSpecialImage> snapBackImage(const SkIRect&) override;
183 sk_sp<SkSpecialImage> filterTexture(SkSpecialImage*,

123456