Index: include/effects/SkMorphologyImageFilter.h |
diff --git a/include/effects/SkMorphologyImageFilter.h b/include/effects/SkMorphologyImageFilter.h |
index 499d6a8c26bd3d04acb85d7043ff7d4446744b56..3f2be45cc5aa1d29346188f0b5f0d217f402d27d 100644 |
--- a/include/effects/SkMorphologyImageFilter.h |
+++ b/include/effects/SkMorphologyImageFilter.h |
@@ -30,7 +30,7 @@ public: |
protected: |
SkMorphologyImageFilter(int radiusX, int radiusY, SkImageFilter* input, |
- const CropRect* cropRect); |
+ const CropRect* cropRect, uint32_t uniqueID); |
bool filterImageGeneric(Proc procX, Proc procY, |
Proxy*, const SkBitmap& src, const Context&, |
SkBitmap* result, SkIPoint* offset) const; |
@@ -56,11 +56,12 @@ class SK_API SkDilateImageFilter : public SkMorphologyImageFilter { |
public: |
static SkDilateImageFilter* Create(int radiusX, int radiusY, |
SkImageFilter* input = NULL, |
- const CropRect* cropRect = NULL) { |
+ const CropRect* cropRect = NULL, |
+ uint32_t uniqueID = 0) { |
if (radiusX < 0 || radiusY < 0) { |
return NULL; |
} |
- return SkNEW_ARGS(SkDilateImageFilter, (radiusX, radiusY, input, cropRect)); |
+ return SkNEW_ARGS(SkDilateImageFilter, (radiusX, radiusY, input, cropRect, uniqueID)); |
} |
virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
@@ -73,8 +74,8 @@ public: |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDilateImageFilter) |
protected: |
- SkDilateImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect) |
- : INHERITED(radiusX, radiusY, input, cropRect) {} |
+ SkDilateImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect, uint32_t uniqueID) |
+ : INHERITED(radiusX, radiusY, input, cropRect, uniqueID) {} |
#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
explicit SkDilateImageFilter(SkReadBuffer& buffer) : INHERITED(buffer) {} |
#endif |
@@ -87,11 +88,12 @@ class SK_API SkErodeImageFilter : public SkMorphologyImageFilter { |
public: |
static SkErodeImageFilter* Create(int radiusX, int radiusY, |
SkImageFilter* input = NULL, |
- const CropRect* cropRect = NULL) { |
+ const CropRect* cropRect = NULL, |
+ uint32_t uniqueID = 0) { |
if (radiusX < 0 || radiusY < 0) { |
return NULL; |
} |
- return SkNEW_ARGS(SkErodeImageFilter, (radiusX, radiusY, input, cropRect)); |
+ return SkNEW_ARGS(SkErodeImageFilter, (radiusX, radiusY, input, cropRect, uniqueID)); |
} |
virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
@@ -104,8 +106,8 @@ public: |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkErodeImageFilter) |
protected: |
- SkErodeImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect) |
- : INHERITED(radiusX, radiusY, input, cropRect) {} |
+ SkErodeImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect, uint32_t uniqueID) |
+ : INHERITED(radiusX, radiusY, input, cropRect, uniqueID) {} |
#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
explicit SkErodeImageFilter(SkReadBuffer& buffer) : INHERITED(buffer) {} |
#endif |