diff options
author | halcanary <halcanary@google.com> | 2016-05-03 12:10:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-03 12:10:04 -0700 |
commit | 676ab68b04597c997e3152f31c08090c0d2ccbe4 (patch) | |
tree | aa04e9083b1b788bdc63bb966bea03eb73637d71 /tools/skhello.cpp | |
parent | 68f7460fd18357a81a3d4243f1a798f0d64b621e (diff) |
documentation: SkDocument::MakePDF()
also, update some tools.
DOCS_PREVIEW= https://skia.org/user/sample/pdf?cl=1936283003
DOCS_PREVIEW= https://skia.org/user/api/canvas?cl=1936283003
Review-Url: https://codereview.chromium.org/1936283003
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r-- | tools/skhello.cpp | 2 |
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); |