Index: include/effects/SkComposeImageFilter.h |
diff --git a/include/effects/SkComposeImageFilter.h b/include/effects/SkComposeImageFilter.h |
index 9e024ef84e193f6d3eb1af7f452cbbda0803c292..7a982d8090b08b5065a7d2f791d3e7ce86c2a2c0 100644 |
--- a/include/effects/SkComposeImageFilter.h |
+++ b/include/effects/SkComposeImageFilter.h |
@@ -12,9 +12,12 @@ |
class SK_API SkComposeImageFilter : public SkImageFilter { |
public: |
- SkComposeImageFilter(SkImageFilter* outer, SkImageFilter* inner) : INHERITED(outer, inner) {} |
virtual ~SkComposeImageFilter(); |
+ static SkComposeImageFilter* Create(SkImageFilter* outer, SkImageFilter* inner) { |
+ return SkNEW_ARGS(SkComposeImageFilter, (outer, inner)); |
+ } |
+ |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkComposeImageFilter) |
protected: |
@@ -24,6 +27,11 @@ protected: |
SkBitmap* result, SkIPoint* loc) const SK_OVERRIDE; |
virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const SK_OVERRIDE; |
+#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS |
+public: |
+#endif |
+ SkComposeImageFilter(SkImageFilter* outer, SkImageFilter* inner) : INHERITED(outer, inner) {} |
+ |
private: |
typedef SkImageFilter INHERITED; |
}; |