summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/skia/include/effects/SkTestImageFilters.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/include/effects/SkTestImageFilters.h')
-rw-r--r--[-rwxr-xr-x]chromium/third_party/skia/include/effects/SkTestImageFilters.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/chromium/third_party/skia/include/effects/SkTestImageFilters.h b/chromium/third_party/skia/include/effects/SkTestImageFilters.h
index e848ff10689..4b20936c3bf 100755..100644
--- a/chromium/third_party/skia/include/effects/SkTestImageFilters.h
+++ b/chromium/third_party/skia/include/effects/SkTestImageFilters.h
@@ -7,16 +7,19 @@
// Fun mode that scales down (only) and then scales back up to look pixelated
class SK_API SkDownSampleImageFilter : public SkImageFilter {
public:
- SkDownSampleImageFilter(SkScalar scale) : INHERITED(0), fScale(scale) {}
+ static SkDownSampleImageFilter* Create(SkScalar scale) {
+ return SkNEW_ARGS(SkDownSampleImageFilter, (scale));
+ }
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDownSampleImageFilter)
protected:
- SkDownSampleImageFilter(SkFlattenableReadBuffer& buffer);
- virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
+ SkDownSampleImageFilter(SkScalar scale) : INHERITED(0), fScale(scale) {}
+ SkDownSampleImageFilter(SkReadBuffer& buffer);
+ virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
- virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
- SkBitmap* result, SkIPoint* loc) SK_OVERRIDE;
+ virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
+ SkBitmap* result, SkIPoint* loc) const SK_OVERRIDE;
private:
SkScalar fScale;