diff options
author | Hal Canary <halcanary@google.com> | 2019-01-07 10:00:48 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2019-01-17 19:16:28 +0000 |
commit | 3026d4b1b80b2b0a02e07420d8a9254c29384283 (patch) | |
tree | 3755be2e71760cbb1124f80c30e2b48af7d688cd /tools | |
parent | 31972f889641ee4e34d30ed5c6c61c5b21a0ecb1 (diff) | |
download | platform_external_skqp-3026d4b1b80b2b0a02e07420d8a9254c29384283.tar.gz platform_external_skqp-3026d4b1b80b2b0a02e07420d8a9254c29384283.tar.bz2 platform_external_skqp-3026d4b1b80b2b0a02e07420d8a9254c29384283.zip |
SkDocument: use `auto` for MakeDocument().
A later CL will make this return a unique_ptr<SkDocument>.
Bug: skia:5972
Change-Id: Ie10d6c07d5f2524ecb71d906db0d37427827225d
Reviewed-on: https://skia-review.googlesource.com/c/181660
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
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 1a5ad3c060..9bee66817e 100644 --- a/tools/fiddle/fiddle_main.cpp +++ b/tools/fiddle/fiddle_main.cpp @@ -301,7 +301,7 @@ int main(int argc, char** argv) { } if (options.pdf) { SkDynamicMemoryWStream pdfStream; - sk_sp<SkDocument> document(SkPDF::MakeDocument(&pdfStream)); + auto document = SkPDF::MakeDocument(&pdfStream); if (document) { srand(0); draw(prepare_canvas(document->beginPage(options.size.width(), options.size.height()))); diff --git a/tools/skhello.cpp b/tools/skhello.cpp index 3eb9f45567..ac2ea56c6a 100644 --- a/tools/skhello.cpp +++ b/tools/skhello.cpp @@ -44,7 +44,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) { - sk_sp<SkDocument> doc(SkPDF::MakeDocument(path)); + auto doc = SkPDF::MakeDocument(path); if (doc.get()) { SkScalar width = SkIntToScalar(w); SkScalar height = SkIntToScalar(h); |