Index: include/effects/SkMagnifierImageFilter.h |
diff --git a/include/effects/SkMagnifierImageFilter.h b/include/effects/SkMagnifierImageFilter.h |
index 44f0d0d6898e005ce1776c114d579b043f9e2bd0..cfe1f09b411aba757a7445850abb96a87f346347 100644 |
--- a/include/effects/SkMagnifierImageFilter.h |
+++ b/include/effects/SkMagnifierImageFilter.h |
@@ -14,7 +14,9 @@ |
class SK_API SkMagnifierImageFilter : public SkImageFilter { |
public: |
- SkMagnifierImageFilter(SkRect srcRect, SkScalar inset); |
+ static SkMagnifierImageFilter* Create(const SkRect& srcRect, SkScalar inset) { |
+ return SkNEW_ARGS(SkMagnifierImageFilter, (srcRect, inset)); |
+ } |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMagnifierImageFilter) |
@@ -28,6 +30,11 @@ protected: |
virtual bool asNewEffect(GrEffectRef** effect, GrTexture* texture, const SkMatrix& matrix, const SkIRect& bounds) const SK_OVERRIDE; |
#endif |
+#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS |
+public: |
+#endif |
+ SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset); |
+ |
private: |
SkRect fSrcRect; |
SkScalar fInset; |