aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skhello.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-05-03 12:10:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-03 12:10:04 -0700
commit676ab68b04597c997e3152f31c08090c0d2ccbe4 (patch)
treeaa04e9083b1b788bdc63bb966bea03eb73637d71 /tools/skhello.cpp
parent68f7460fd18357a81a3d4243f1a798f0d64b621e (diff)
documentation: SkDocument::MakePDF()
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r--tools/skhello.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index d033641bf1..f7d5b9a00e 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -48,7 +48,7 @@ static bool do_surface(int w, int h, const char path[], const char text[],
static bool do_document(int w, int h, const char path[], const char text[],
const SkPaint& paint) {
- SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(path));
+ sk_sp<SkDocument> doc(SkDocument::MakePDF(path));
if (doc.get()) {
SkScalar width = SkIntToScalar(w);
SkScalar height = SkIntToScalar(h);