aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFResourceDict.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-03-08 12:38:22 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-08 12:38:22 -0800
commit9904c9212074279380e21f96575078734dbbd308 (patch)
tree8970a1405170db6036b11ec1797e21cf33d5ce4b /src/pdf/SkPDFResourceDict.h
parent6b5c5cc7b7bdffb4882706b915b544aba8714961 (diff)
SkPDF: Add sk_sp setters; .release() becomes std::move()
Note to reviewers: Start with changes to SkPDFTypes.h Many places that had a bare pointer owning a reference are refactored to use a sk_sp. There remain several places where a non-owning pointer `T*` should be replaced with `const sk_sp<T>&` to eliminate the common pattern `sk_sp<T>(SkRef(x))`. Review URL: https://codereview.chromium.org/1775043002
Diffstat (limited to 'src/pdf/SkPDFResourceDict.h')
-rw-r--r--src/pdf/SkPDFResourceDict.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFResourceDict.h b/src/pdf/SkPDFResourceDict.h
index 698823b36c..c45b364adc 100644
--- a/src/pdf/SkPDFResourceDict.h
+++ b/src/pdf/SkPDFResourceDict.h
@@ -36,7 +36,7 @@ public:
*
* Any arguments can be nullptr.
*/
- static SkPDFDict* Create(
+ static sk_sp<SkPDFDict> Make(
const SkTDArray<SkPDFObject*>* gStateResources,
const SkTDArray<SkPDFObject*>* patternResources,
const SkTDArray<SkPDFObject*>* xObjectResources,