| Index: src/core/SkShader.cpp
|
| diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
|
| index 31b208e2ccdfc609ffc3129fa182333bc83f0af4..e337b7d9063eda8003e8bc00317dd9041fa92bb0 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);
|
| }
|
|
|
| +SkShader* SkShader::CreatePictureShader(SkPicture* src, TileMode tmx, TileMode tmy) {
|
| + return SkPictureShader::Create(src, tmx, tmy);
|
| +}
|
| +
|
| #ifndef SK_IGNORE_TO_STRING
|
| void SkShader::toString(SkString* str) const {
|
| if (this->hasLocalMatrix()) {
|
|
|