Index: src/pdf/SkPDFResourceDict.cpp |
diff --git a/src/pdf/SkPDFResourceDict.cpp b/src/pdf/SkPDFResourceDict.cpp |
index b72e6667fd608c35e1e9d40a93f50f1658d2d721..460d18c74077a92182e8934b618c300ac0913f52 100644 |
--- a/src/pdf/SkPDFResourceDict.cpp |
+++ b/src/pdf/SkPDFResourceDict.cpp |
@@ -61,7 +61,7 @@ static void add_subdict( |
if (0 == resourceList.count()) { |
return; |
} |
- SkAutoTUnref<SkPDFDict> resources(new SkPDFDict); |
+ sk_sp<SkPDFDict> resources(new SkPDFDict); |
for (int i = 0; i < resourceList.count(); i++) { |
resources->insertObjRef(SkPDFResourceDict::getResourceName(type, i), |
SkRef(resourceList[i])); |
@@ -74,10 +74,10 @@ SkPDFDict* SkPDFResourceDict::Create( |
const SkTDArray<SkPDFObject*>* patternResources, |
const SkTDArray<SkPDFObject*>* xObjectResources, |
const SkTDArray<SkPDFObject*>* fontResources) { |
- SkAutoTUnref<SkPDFDict> dict(new SkPDFDict); |
+ sk_sp<SkPDFDict> dict(new SkPDFDict); |
static const char kProcs[][7] = { |
"PDF", "Text", "ImageB", "ImageC", "ImageI"}; |
- SkAutoTUnref<SkPDFArray> procSets(new SkPDFArray); |
+ sk_sp<SkPDFArray> procSets(new SkPDFArray); |
procSets->reserve(SK_ARRAY_COUNT(kProcs)); |
for (size_t i = 0; i < SK_ARRAY_COUNT(kProcs); i++) { |