diff options
Diffstat (limited to 'tools/gpuveto.cpp')
-rw-r--r-- | tools/gpuveto.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gpuveto.cpp b/tools/gpuveto.cpp index f2e103e1e3..41ca0c8dd3 100644 --- a/tools/gpuveto.cpp +++ b/tools/gpuveto.cpp @@ -41,8 +41,8 @@ int tool_main(int argc, char** argv) { return kError; } - SkAutoTUnref<SkPicture> picture(SkPicture::CreateFromStream(&inputStream)); - if (nullptr == picture.get()) { + sk_sp<SkPicture> picture(SkPicture::MakeFromStream(&inputStream)); + if (nullptr == picture) { if (!FLAGS_quiet) { SkDebugf("Could not read the SkPicture\n"); } @@ -55,7 +55,7 @@ int tool_main(int argc, char** argv) { picture->playback(recorder.beginRecording(picture->cullRect().width(), picture->cullRect().height(), nullptr, 0)); - SkAutoTUnref<SkPicture> recorded(recorder.endRecording()); + sk_sp<SkPicture> recorded(recorder.finishRecordingAsPicture()); if (recorded->suitableForGpuRasterization(nullptr)) { SkDebugf("suitable\n"); |