diff options
author | halcanary <halcanary@google.com> | 2016-03-07 14:57:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-07 14:57:50 -0800 |
commit | 48810a023705ffac466adb93efdb3861cf2e197a (patch) | |
tree | 265df5a79df70d3651c05f1997a9fe843eb97b33 /src/pdf/SkPDFTypes.h | |
parent | 28f45b949acc746849100fbe112ee5280f0594c9 (diff) |
SkPDF: s/SkAutoTUnref/sk_sp/g
Review URL: https://codereview.chromium.org/1771073002
Diffstat (limited to 'src/pdf/SkPDFTypes.h')
-rw-r--r-- | src/pdf/SkPDFTypes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdf/SkPDFTypes.h b/src/pdf/SkPDFTypes.h index 97c4fa1dbf..5a48019fd3 100644 --- a/src/pdf/SkPDFTypes.h +++ b/src/pdf/SkPDFTypes.h @@ -109,13 +109,13 @@ public: static SkPDFUnion String(const SkString&); /** This function DOES take ownership of the object. E.g. - SkAutoTUnref<SkPDFDict> dict(new SkPDFDict); + sk_sp<SkPDFDict> dict(new SkPDFDict); dict->insert(.....); SkPDFUnion u = SkPDFUnion::Object(dict.detach()) */ static SkPDFUnion Object(SkPDFObject*); /** This function DOES take ownership of the object. E.g. - SkAutoTUnref<SkPDFBitmap> image( + sk_sp<SkPDFBitmap> image( SkPDFBitmap::Create(fCanon, bitmap)); SkPDFUnion u = SkPDFUnion::ObjRef(image.detach()) */ static SkPDFUnion ObjRef(SkPDFObject*); @@ -327,7 +327,7 @@ public: private: SkAutoTDelete<SkStreamAsset> fAsset; - SkAutoTUnref<SkPDFDict> fDict; + sk_sp<SkPDFDict> fDict; typedef SkPDFObject INHERITED; }; |