Home
last modified time | relevance | path

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

12345

/third_party/flutter/skia/tests/
DSpecialImageTest.cpp56 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, in test_image()
137 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster( in DEF_TEST()
144 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm)); in DEF_TEST()
149 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in DEF_TEST()
159 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage( in test_specialimage_image()
167 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromImage(nullptr, subset, fullImage)); in test_specialimage_image()
172 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in test_specialimage_image()
182 const sk_sp<SkSpecialImage>& orig, in test_texture_backed()
183 const sk_sp<SkSpecialImage>& gpuBacked) { in test_texture_backed()
202 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()
/third_party/flutter/skia/src/core/
DSkSpecialImage.cpp37 class SkSpecialImage_Base : public SkSpecialImage {
58 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0;
73 typedef SkSpecialImage INHERITED;
77 static inline const SkSpecialImage_Base* as_SIB(const SkSpecialImage* image) { in as_SIB()
81 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() function in SkSpecialImage
89 sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrRecordingContext* context) { in makeTextureImage()
95 return curContext->priv().matches(context) ? sk_sp<SkSpecialImage>(SkRef(this)) : nullptr; in makeTextureImage()
109 return SkSpecialImage::MakeFromRaster(SkIRect::MakeEmpty(), bmp, &this->props()); in makeTextureImage()
123 return SkSpecialImage::MakeDeferredFromGpu(context, in makeTextureImage()
135 void SkSpecialImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) const { in draw()
[all …]
DSkSpecialImage.h42 class SkSpecialImage : public SkRefCnt {
63 sk_sp<SkSpecialImage> makeTextureImage(GrRecordingContext*);
70 static sk_sp<SkSpecialImage> MakeFromImage(GrRecordingContext*,
74 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
77 static sk_sp<SkSpecialImage> CopyFromRaster(const SkIRect& subset,
81 static sk_sp<SkSpecialImage> MakeDeferredFromGpu(GrRecordingContext*,
115 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
155 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps*);
DSkImageFilter_Base.h44 sk_sp<SkSpecialImage> filterImage(const skif::Context& context, SkIPoint* offset) const;
153 virtual sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const = 0;
194 sk_sp<SkSpecialImage> filterInput(int index,
235 sk_sp<SkSpecialImage> applyCropRectAndPad(const Context&, SkSpecialImage* src,
247 static sk_sp<SkSpecialImage> DrawWithFP(GrRecordingContext* context,
259 static sk_sp<SkSpecialImage> ImageToColorSpace(SkSpecialImage* src,
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()
DSkImageFilter.cpp202 sk_sp<SkSpecialImage> SkImageFilter_Base::filterImage(const Context& context, in filterImage()
214 sk_sp<SkSpecialImage> result = context.cache()->get(key, offset); in filterImage()
220 sk_sp<SkSpecialImage> result(this->onFilterImage(context, offset)); in filterImage()
304 static sk_sp<SkSpecialImage> pad_image(SkSpecialImage* src, const SkImageFilter_Base::Context& ctx, in pad_image()
336 sk_sp<SkSpecialImage> SkImageFilter_Base::applyCropRectAndPad(const Context& ctx, in applyCropRectAndPad()
337 SkSpecialImage* src, in applyCropRectAndPad()
348 return sk_sp<SkSpecialImage>(SkRef(src)); in applyCropRectAndPad()
350 sk_sp<SkSpecialImage> img(pad_image(src, ctx, bounds->width(), bounds->height(), in applyCropRectAndPad()
383 sk_sp<SkSpecialImage> SkImageFilter_Base::filterInput(int index, in filterInput()
391 sk_sp<SkSpecialImage> result(as_IFB(input)->filterImage(this->mapContext(ctx), offset)); in filterInput()
[all …]
DSkBitmapDevice.h110 void drawSpecial(SkSpecialImage*, int x, int y, const SkPaint&,
112 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override;
113 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override;
114 sk_sp<SkSpecialImage> snapSpecial() override;
117 sk_sp<SkSpecialImage> snapBackImage(const SkIRect&) override;
/third_party/skia/src/core/
DSkSpecialImage.cpp35 class SkSpecialImage_Base : public SkSpecialImage {
57 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0;
72 using INHERITED = SkSpecialImage;
76 static inline const SkSpecialImage_Base* as_SIB(const SkSpecialImage* image) { in as_SIB()
80 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() function in SkSpecialImage
88 void SkSpecialImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y, in draw()
93 bool SkSpecialImage::getROPixels(SkBitmap* bm) const { in getROPixels()
97 bool SkSpecialImage::isTextureBacked() const { in isTextureBacked()
101 GrRecordingContext* SkSpecialImage::getContext() const { in getContext()
105 SkColorSpace* SkSpecialImage::getColorSpace() const { in getColorSpace()
[all …]
DSkSpecialImage.h48 class SkSpecialImage : public SkRefCnt {
73 static sk_sp<SkSpecialImage> MakeFromImage(GrRecordingContext*,
77 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
80 static sk_sp<SkSpecialImage> CopyFromRaster(const SkIRect& subset,
84 static sk_sp<SkSpecialImage> MakeDeferredFromGpu(GrRecordingContext*,
119 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
159 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps&);
DSkSpecialSurface.cpp30 virtual sk_sp<SkSpecialImage> onMakeImageSnapshot() = 0;
56 sk_sp<SkSpecialImage> SkSpecialSurface::makeImageSnapshot() { in makeImageSnapshot()
57 sk_sp<SkSpecialImage> image(as_SB(this)->onMakeImageSnapshot()); in makeImageSnapshot()
85 sk_sp<SkSpecialImage> onMakeImageSnapshot() override { in onMakeImageSnapshot()
86 return SkSpecialImage::MakeFromRaster(this->subset(), fBitmap, this->props()); in onMakeImageSnapshot()
137 sk_sp<SkSpecialImage> onMakeImageSnapshot() override { in onMakeImageSnapshot()
145 return SkSpecialImage::MakeDeferredFromGpu(fCanvas->recordingContext(), in onMakeImageSnapshot()
DSkImageFilter_Base.h206 virtual sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const { in onFilterImage()
219 sk_sp<SkSpecialImage> filterInput(int index, const Context& ctx, SkIPoint* offset) const { in filterInput()
292 sk_sp<SkSpecialImage> applyCropRectAndPad(const Context&, SkSpecialImage* src,
307 static sk_sp<SkSpecialImage> DrawWithFP(GrRecordingContext* context,
320 static sk_sp<SkSpecialImage> ImageToColorSpace(SkSpecialImage* src,
/third_party/skia/tests/
DSpecialImageTest.cpp58 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, in test_image()
141 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster( in DEF_TEST()
148 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm, in DEF_TEST()
154 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in DEF_TEST()
164 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage( in test_specialimage_image()
173 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromImage(nullptr, subset, fullImage, in test_specialimage_image()
179 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); in test_specialimage_image()
196 sk_sp<SkSpecialImage> fullSImg = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
197 SkSpecialImage::MakeDeferredFromGpu(context, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
208 sk_sp<SkSpecialImage> subSImg1 = SkSpecialImage::MakeDeferredFromGpu( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DImageFilterCacheTest.cpp41 const sk_sp<SkSpecialImage>& image, in test_find_existing()
42 const sk_sp<SkSpecialImage>& subset) { in test_find_existing()
64 const sk_sp<SkSpecialImage>& image, in test_dont_find_if_diff_key()
65 const sk_sp<SkSpecialImage>& subset) { in test_dont_find_if_diff_key()
90 static void test_internal_purge(skiatest::Reporter* reporter, const sk_sp<SkSpecialImage>& image) { in test_internal_purge()
117 const sk_sp<SkSpecialImage>& image, in test_explicit_purging()
118 const sk_sp<SkSpecialImage>& subset) { in test_explicit_purging()
157 sk_sp<SkSpecialImage> fullImg(SkSpecialImage::MakeFromRaster(full, srcBM, SkSurfaceProps())); in DEF_TEST()
161 sk_sp<SkSpecialImage> subsetImg(SkSpecialImage::MakeFromRaster(subset, srcBM, in DEF_TEST()
177 sk_sp<SkSpecialImage> fullImg(SkSpecialImage::MakeFromImage(rContext, full, srcImage, in test_image_backed()
[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(device.get(), bm); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/flutter/skia/src/effects/imagefilters/
DSkXfermodeImageFilter.cpp43 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
49 sk_sp<SkSpecialImage> filterImageGPU(const Context& ctx,
50 sk_sp<SkSpecialImage> background,
52 sk_sp<SkSpecialImage> foreground,
59 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const;
113 sk_sp<SkSpecialImage> SkXfermodeImageFilterImpl::onFilterImage(const Context& ctx, in onFilterImage()
116 sk_sp<SkSpecialImage> background(this->filterInput(0, ctx, &backgroundOffset)); in onFilterImage()
119 sk_sp<SkSpecialImage> foreground(this->filterInput(1, ctx, &foregroundOffset)); in onFilterImage()
222 void SkXfermodeImageFilterImpl::drawForeground(SkCanvas* canvas, SkSpecialImage* img, in drawForeground()
240 sk_sp<SkSpecialImage> SkXfermodeImageFilterImpl::filterImageGPU( in filterImageGPU()
[all …]
DSkBlurImageFilter.cpp46 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
55 sk_sp<SkSpecialImage> gpuFilter(
57 const sk_sp<SkSpecialImage> &input,
391 static sk_sp<SkSpecialImage> copy_image_with_bounds( in copy_image_with_bounds()
392 const SkImageFilter_Base::Context& ctx, const sk_sp<SkSpecialImage> &input, in copy_image_with_bounds()
451 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds()
457 static sk_sp<SkSpecialImage> cpu_blur( in cpu_blur()
459 SkVector sigma, const sk_sp<SkSpecialImage> &input, in cpu_blur()
560 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in cpu_blur()
580 sk_sp<SkSpecialImage> SkBlurImageFilterImpl::onFilterImage(const Context& ctx, in onFilterImage()
[all …]
DSkArithmeticImageFilter.cpp58 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
64 sk_sp<SkSpecialImage> filterImageGPU(const Context& ctx,
65 sk_sp<SkSpecialImage> background,
67 sk_sp<SkSpecialImage> foreground,
74 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const;
205 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::onFilterImage(const Context& ctx, in onFilterImage()
208 sk_sp<SkSpecialImage> background(this->filterInput(0, ctx, &backgroundOffset)); in onFilterImage()
211 sk_sp<SkSpecialImage> foreground(this->filterInput(1, ctx, &foregroundOffset)); in onFilterImage()
324 sk_sp<SkSpecialImage> ArithmeticImageFilterImpl::filterImageGPU( in filterImageGPU()
326 sk_sp<SkSpecialImage> background, in filterImageGPU()
[all …]
DSkMergeImageFilter.cpp29 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
62 sk_sp<SkSpecialImage> SkMergeImageFilterImpl::onFilterImage(const Context& ctx, in onFilterImage()
72 std::unique_ptr<sk_sp<SkSpecialImage>[]> inputs(new sk_sp<SkSpecialImage>[inputCount]); in onFilterImage()
/third_party/skia/src/effects/imagefilters/
DSkBlendImageFilter.cpp44 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
50 sk_sp<SkSpecialImage> filterImageGPU(const Context& ctx,
51 sk_sp<SkSpecialImage> background,
53 sk_sp<SkSpecialImage> foreground,
60 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const;
129 sk_sp<SkSpecialImage> SkBlendImageFilter::onFilterImage(const Context& ctx, in onFilterImage()
132 sk_sp<SkSpecialImage> background(this->filterInput(0, ctx, &backgroundOffset)); in onFilterImage()
135 sk_sp<SkSpecialImage> foreground(this->filterInput(1, ctx, &foregroundOffset)); in onFilterImage()
238 void SkBlendImageFilter::drawForeground(SkCanvas* canvas, SkSpecialImage* img, in drawForeground()
257 sk_sp<SkSpecialImage> SkBlendImageFilter::filterImageGPU(const Context& ctx, in filterImageGPU()
[all …]
DSkArithmeticImageFilter.cpp41 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
47 sk_sp<SkSpecialImage> filterImageGPU(const Context& ctx,
48 sk_sp<SkSpecialImage> background,
50 sk_sp<SkSpecialImage> foreground,
57 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const;
188 sk_sp<SkSpecialImage> SkArithmeticImageFilter::onFilterImage(const Context& ctx, in onFilterImage()
191 sk_sp<SkSpecialImage> background(this->filterInput(0, ctx, &backgroundOffset)); in onFilterImage()
194 sk_sp<SkSpecialImage> foreground(this->filterInput(1, ctx, &foregroundOffset)); in onFilterImage()
335 sk_sp<SkSpecialImage> SkArithmeticImageFilter::filterImageGPU( in filterImageGPU()
337 sk_sp<SkSpecialImage> background, in filterImageGPU()
[all …]
DSkMergeImageFilter.cpp28 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
60 sk_sp<SkSpecialImage> SkMergeImageFilter::onFilterImage(const Context& ctx, in onFilterImage()
70 std::unique_ptr<sk_sp<SkSpecialImage>[]> inputs(new sk_sp<SkSpecialImage>[inputCount]); in onFilterImage()
DSkBlurImageFilter.cpp48 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
57 sk_sp<SkSpecialImage> gpuFilter(
59 const sk_sp<SkSpecialImage> &input,
690 sk_sp<SkSpecialImage> copy_image_with_bounds( in copy_image_with_bounds()
691 const SkImageFilter_Base::Context& ctx, const sk_sp<SkSpecialImage> &input, in copy_image_with_bounds()
750 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds()
756 sk_sp<SkSpecialImage> cpu_blur( in cpu_blur()
758 SkVector sigma, const sk_sp<SkSpecialImage> &input, in cpu_blur()
877 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in cpu_blur()
898 sk_sp<SkSpecialImage> SkBlurImageFilter::onFilterImage(const Context& ctx, in onFilterImage()
[all …]
/third_party/flutter/skia/src/gpu/
DSkGpuDevice.h28 class SkSpecialImage; variable
110 void drawSpecial(SkSpecialImage*, int left, int top, const SkPaint& paint,
118 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override;
119 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override;
120 sk_sp<SkSpecialImage> snapSpecial() override;
121 sk_sp<SkSpecialImage> snapBackImage(const SkIRect&) override;
183 sk_sp<SkSpecialImage> filterTexture(SkSpecialImage*,

12345