Index: src/pdf/SkPDFShader.h |
diff --git a/src/pdf/SkPDFShader.h b/src/pdf/SkPDFShader.h |
index 999dc0207008b7d2d15f9a2749ea6854e0ba58e1..921d574fffe43ddab057740165b9629036418fa2 100644 |
--- a/src/pdf/SkPDFShader.h |
+++ b/src/pdf/SkPDFShader.h |
@@ -56,12 +56,12 @@ public: |
class SkPDFFunctionShader final : public SkPDFDict { |
public: |
static SkPDFFunctionShader* Create(SkPDFCanon*, |
- SkAutoTDelete<SkPDFShader::State>*); |
+ std::unique_ptr<SkPDFShader::State>*); |
virtual ~SkPDFFunctionShader(); |
bool equals(const SkPDFShader::State&) const; |
private: |
- SkAutoTDelete<const SkPDFShader::State> fShaderState; |
+ std::unique_ptr<const SkPDFShader::State> fShaderState; |
SkPDFFunctionShader(SkPDFShader::State*); |
typedef SkPDFDict INHERITED; |
}; |
@@ -75,12 +75,12 @@ class SkPDFAlphaFunctionShader final : public SkPDFStream { |
public: |
static SkPDFAlphaFunctionShader* Create(SkPDFDocument*, |
SkScalar dpi, |
- SkAutoTDelete<SkPDFShader::State>*); |
+ std::unique_ptr<SkPDFShader::State>*); |
virtual ~SkPDFAlphaFunctionShader(); |
bool equals(const SkPDFShader::State&) const; |
private: |
- SkAutoTDelete<const SkPDFShader::State> fShaderState; |
+ std::unique_ptr<const SkPDFShader::State> fShaderState; |
SkPDFAlphaFunctionShader(SkPDFShader::State*); |
typedef SkPDFStream INHERITED; |
}; |
@@ -89,12 +89,12 @@ class SkPDFImageShader final : public SkPDFStream { |
public: |
static SkPDFImageShader* Create(SkPDFDocument*, |
SkScalar dpi, |
- SkAutoTDelete<SkPDFShader::State>*); |
+ std::unique_ptr<SkPDFShader::State>*); |
virtual ~SkPDFImageShader(); |
bool equals(const SkPDFShader::State&) const; |
private: |
- SkAutoTDelete<const SkPDFShader::State> fShaderState; |
+ std::unique_ptr<const SkPDFShader::State> fShaderState; |
SkPDFImageShader(SkPDFShader::State*); |
typedef SkPDFStream INHERITED; |
}; |