Index: src/core/SkShader.cpp |
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp |
index 52d0064eb1b16f7d6b4e0ccdc1d099a93d75fd5d..75fa6fc60cc72112d47ca16c3a2fa84172ef21b5 100644 |
--- a/src/core/SkShader.cpp |
+++ b/src/core/SkShader.cpp |
@@ -449,4 +449,7 @@ SkShader* SkShader::CreatePictureShader(const SkPicture* src, TileMode tmx, Tile |
return MakePictureShader(sk_ref_sp(const_cast<SkPicture*>(src)), tmx, tmy, |
localMatrix, tile).release(); |
} |
+SkShader* SkShader::newWithColorFilter(SkColorFilter* filter) const { |
+ return this->makeWithColorFilter(sk_ref_sp(filter)).release(); |
+} |
#endif |