Index: include/effects/SkTileImageFilter.h |
diff --git a/include/effects/SkTileImageFilter.h b/include/effects/SkTileImageFilter.h |
index 29e3ca571ff6a16b5aa221afc5a418b50bc470d2..084f726e88aa0908f289803d1a4ef278cb39216e 100644 |
--- a/include/effects/SkTileImageFilter.h |
+++ b/include/effects/SkTileImageFilter.h |
@@ -20,9 +20,7 @@ public: |
@param input Input from which the subregion defined by srcRect will be tiled |
*/ |
static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect, |
- SkImageFilter* input) { |
- return SkNEW_ARGS(SkTileImageFilter, (srcRect, dstRect, input)); |
- } |
+ SkImageFilter* input); |
virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const Context& ctx, |
SkBitmap* dst, SkIPoint* offset) const SK_OVERRIDE; |
@@ -34,7 +32,9 @@ public: |
protected: |
SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) |
: INHERITED(1, &input), fSrcRect(srcRect), fDstRect(dstRect) {} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
explicit SkTileImageFilter(SkReadBuffer& buffer); |
+#endif |
virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; |