Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: src/pdf/SkPDFShader.h

Issue 1837553002: SkPDF s/SkAutoTDelete/std::unique_ptr/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-03-28 (Monday) 10:22:50 EDT Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pdf/SkPDFMetadata.h ('k') | src/pdf/SkPDFShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « src/pdf/SkPDFMetadata.h ('k') | src/pdf/SkPDFShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698