diff options
author | 2016-05-03 12:10:04 -0700 | |
---|---|---|
committer | 2016-05-03 12:10:04 -0700 | |
commit | 676ab68b04597c997e3152f31c08090c0d2ccbe4 (patch) | |
tree | aa04e9083b1b788bdc63bb966bea03eb73637d71 /tools | |
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')
-rw-r--r-- | tools/fiddle/fiddle_main.cpp | 2 | ||||
-rw-r--r-- | tools/skhello.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/fiddle/fiddle_main.cpp b/tools/fiddle/fiddle_main.cpp index 3e1570813d..bf7a032b44 100644 --- a/tools/fiddle/fiddle_main.cpp +++ b/tools/fiddle/fiddle_main.cpp @@ -137,7 +137,7 @@ int main() { } if (options.pdf) { SkDynamicMemoryWStream pdfStream; - sk_sp<SkDocument> document(SkDocument::CreatePDF(&pdfStream)); + sk_sp<SkDocument> document(SkDocument::MakePDF(&pdfStream)); draw(document->beginPage(options.size.width(), options.size.height())); document->close(); pdfData.reset(pdfStream.copyToData()); 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); |