| Index: include/effects/SkMorphologyImageFilter.h
|
| diff --git a/include/effects/SkMorphologyImageFilter.h b/include/effects/SkMorphologyImageFilter.h
|
| index c5c5c7401e5e540a264e4441e635bae0452e9a8e..22956a05185ae717a93ad60fad8d1c46735157c3 100644
|
| --- a/include/effects/SkMorphologyImageFilter.h
|
| +++ b/include/effects/SkMorphologyImageFilter.h
|
| @@ -32,13 +32,13 @@ protected:
|
| SkMorphologyImageFilter(int radiusX, int radiusY, SkImageFilter* input,
|
| const CropRect* cropRect);
|
| bool filterImageGeneric(Proc procX, Proc procY,
|
| - Proxy*, const SkBitmap& src, const Context&,
|
| - SkBitmap* result, SkIPoint* offset) const;
|
| + Proxy*, const SkImage* src, const Context&,
|
| + SkAutoTUnref<const SkImage>& result, SkIPoint* offset) const;
|
| void flatten(SkWriteBuffer&) const SK_OVERRIDE;
|
| #if SK_SUPPORT_GPU
|
| bool canFilterImageGPU() const SK_OVERRIDE { return true; }
|
| - bool filterImageGPUGeneric(bool dilate, Proxy* proxy, const SkBitmap& src,
|
| - const Context& ctm, SkBitmap* result,
|
| + bool filterImageGPUGeneric(bool dilate, Proxy* proxy, const SkImage* src,
|
| + const Context& ctm, SkAutoTUnref<const SkImage>& result,
|
| SkIPoint* offset) const;
|
| #endif
|
|
|
| @@ -60,11 +60,13 @@ public:
|
| return SkNEW_ARGS(SkDilateImageFilter, (radiusX, radiusY, input, cropRect));
|
| }
|
|
|
| - virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
|
| - SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE;
|
| + virtual bool onFilterImage(Proxy*, const SkImage* src, const Context&,
|
| + SkAutoTUnref<const SkImage>& result,
|
| + SkIPoint* offset) const SK_OVERRIDE;
|
| #if SK_SUPPORT_GPU
|
| - virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context&,
|
| - SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE;
|
| + virtual bool filterImageGPU(Proxy* proxy, const SkImage* src, const Context&,
|
| + SkAutoTUnref<const SkImage>& result,
|
| + SkIPoint* offset) const SK_OVERRIDE;
|
| #endif
|
|
|
| SK_TO_STRING_OVERRIDE()
|
| @@ -88,11 +90,13 @@ public:
|
| return SkNEW_ARGS(SkErodeImageFilter, (radiusX, radiusY, input, cropRect));
|
| }
|
|
|
| - virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
|
| - SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE;
|
| + virtual bool onFilterImage(Proxy*, const SkImage* src, const Context&,
|
| + SkAutoTUnref<const SkImage>& result,
|
| + SkIPoint* offset) const SK_OVERRIDE;
|
| #if SK_SUPPORT_GPU
|
| - virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context&,
|
| - SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE;
|
| + virtual bool filterImageGPU(Proxy* proxy, const SkImage* src, const Context&,
|
| + SkAutoTUnref<const SkImage>& result,
|
| + SkIPoint* offset) const SK_OVERRIDE;
|
| #endif
|
|
|
| SK_TO_STRING_OVERRIDE()
|
|
|