Index: src/effects/SkRectShaderImageFilter.cpp |
diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp |
index 37d6af28adccb2201fb719aa56d5a4f7c47f4fd3..a2409076c4083dda04774c6ba3f7c79afc3c3a35 100644 |
--- a/src/effects/SkRectShaderImageFilter.cpp |
+++ b/src/effects/SkRectShaderImageFilter.cpp |
@@ -31,6 +31,11 @@ SkRectShaderImageFilter* SkRectShaderImageFilter::Create(SkShader* s, const SkRe |
return SkNEW_ARGS(SkRectShaderImageFilter, (s, &cropRect)); |
} |
+SkRectShaderImageFilter* SkRectShaderImageFilter::Create(SkShader* s, const CropRect* cropRect) { |
+ SkASSERT(s); |
+ return SkNEW_ARGS(SkRectShaderImageFilter, (s, cropRect)); |
+} |
+ |
SkRectShaderImageFilter::SkRectShaderImageFilter(SkShader* s, const CropRect* cropRect) |
: INHERITED(NULL, cropRect) |
, fShader(s) { |