Index: src/core/SkShader.cpp |
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp |
index 31b208e2ccdfc609ffc3129fa182333bc83f0af4..db941ee6132aff39b7e862c768b6a53df25749eb 100644 |
--- a/src/core/SkShader.cpp |
+++ b/src/core/SkShader.cpp |
@@ -9,6 +9,8 @@ |
#include "SkReadBuffer.h" |
#include "SkMallocPixelRef.h" |
#include "SkPaint.h" |
+#include "SkPicture.h" |
+#include "SkPictureShader.h" |
#include "SkScalar.h" |
#include "SkShader.h" |
#include "SkWriteBuffer.h" |
@@ -179,6 +181,10 @@ SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, |
return ::CreateBitmapShader(src, tmx, tmy, NULL); |
} |
robertphillips
2014/04/02 18:15:35
This seems a bit odd since we're taking a ref on s
|
+SkShader* SkShader::CreatePictureShader(SkPicture& src, TileMode tmx, TileMode tmy) { |
+ return SkNEW_ARGS(SkPictureShader, (&src, tmx, tmy)); |
+} |
+ |
#ifndef SK_IGNORE_TO_STRING |
void SkShader::toString(SkString* str) const { |
if (this->hasLocalMatrix()) { |