Index: src/core/SkPictureShader.h |
diff --git a/src/core/SkPictureShader.h b/src/core/SkPictureShader.h |
index 9b270e3899daa2ea8671b4992379f53e410c5e44..f0bad61ef56bb5b85611e1cd8484afc10aa79237 100644 |
--- a/src/core/SkPictureShader.h |
+++ b/src/core/SkPictureShader.h |
@@ -24,7 +24,6 @@ class SkPictureShader : public SkShader { |
public: |
static SkShader* Create(const SkPicture*, TileMode, TileMode, const SkMatrix*, |
const SkRect*); |
- virtual ~SkPictureShader(); |
size_t contextSize() const override; |
@@ -49,9 +48,9 @@ private: |
SkShader* refBitmapShader(const SkMatrix&, const SkMatrix* localMatrix, const int maxTextureSize = 0) const; |
- const SkPicture* fPicture; |
- SkRect fTile; |
- TileMode fTmx, fTmy; |
+ SkAutoTUnref<const SkPicture> fPicture; |
+ SkRect fTile; |
+ TileMode fTmx, fTmy; |
class PictureShaderContext : public SkShader::Context { |
public: |