Index: include/effects/SkTestImageFilters.h |
diff --git a/include/effects/SkTestImageFilters.h b/include/effects/SkTestImageFilters.h |
index abbaa92593e101c0c996803c2c1aebec267efd86..24f6349cd0499291d4709c999e542591ec5b1d7d 100755 |
--- a/include/effects/SkTestImageFilters.h |
+++ b/include/effects/SkTestImageFilters.h |
@@ -7,11 +7,14 @@ |
// 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(SkScalar scale) : INHERITED(0), fScale(scale) {} |
SkDownSampleImageFilter(SkReadBuffer& buffer); |
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |