| Index: gm/imagefiltersbase.cpp
|
| diff --git a/gm/imagefiltersbase.cpp b/gm/imagefiltersbase.cpp
|
| index 4779c81438ee226cb5f19d57ba32377907340b9b..84c912e7b7efdc3042a07495a8e68bad824f3c4f 100644
|
| --- a/gm/imagefiltersbase.cpp
|
| +++ b/gm/imagefiltersbase.cpp
|
| @@ -24,7 +24,7 @@ public:
|
|
|
| SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(FailImageFilter)
|
| protected:
|
| - FailImageFilter() : INHERITED(0) {}
|
| + FailImageFilter() : INHERITED(0, NULL) {}
|
| virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
|
| SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE {
|
| return false;
|
| @@ -44,13 +44,13 @@ static SkFlattenable::Registrar gFailImageFilterReg("FailImageFilter",
|
|
|
| class IdentityImageFilter : public SkImageFilter {
|
| public:
|
| - static IdentityImageFilter* Create() {
|
| - return SkNEW(IdentityImageFilter);
|
| + static IdentityImageFilter* Create(SkImageFilter* input = NULL) {
|
| + return SkNEW_ARGS(IdentityImageFilter, (input));
|
| }
|
|
|
| SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(IdentityImageFilter)
|
| protected:
|
| - IdentityImageFilter() : INHERITED(0) {}
|
| + IdentityImageFilter(SkImageFilter* input) : INHERITED(1, &input) {}
|
| virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
|
| SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE {
|
| *result = src;
|
|
|