| Index: include/core/SkImage.h
|
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h
|
| index 0474195ae2f1ad2d69bf9494f1111afff570eb7f..9d112560ad4b3f4faca33f2bb20c81a5431d34b9 100644
|
| --- a/include/core/SkImage.h
|
| +++ b/include/core/SkImage.h
|
| @@ -163,9 +163,13 @@ public:
|
| bool readYUV8Planes(const SkISize[3], void* const planes[3], const size_t rowBytes[3],
|
| SkYUVColorSpace) const;
|
|
|
| - virtual SkShader* newShader(SkShader::TileMode,
|
| - SkShader::TileMode,
|
| - const SkMatrix* localMatrix = NULL) const;
|
| +#ifdef SK_SUPPORT_LEGACY_CREATESHADER_PTR
|
| + SkShader* newShader(SkShader::TileMode, SkShader::TileMode,
|
| + const SkMatrix* localMatrix = nullptr) const;
|
| +#endif
|
| +
|
| + sk_sp<SkShader> makeShader(SkShader::TileMode, SkShader::TileMode,
|
| + const SkMatrix* localMatrix = nullptr) const;
|
|
|
| /**
|
| * If the image has direct access to its pixels (i.e. they are in local
|
|
|