Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: tools/skhello.cpp

Issue 1936283003: documentation: SkDocument::MakePDF() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-05-02 (Monday) 17:27:37 EDT Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/fiddle/fiddle_main.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skhello.cpp
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index d033641bf1f1ea9d3cbb4f675e62d25bbc22f645..f7d5b9a00efd1c9f6bf02ca41e2263fa16e20a1f 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);
« no previous file with comments | « tools/fiddle/fiddle_main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698