| Index: tools/pinspect.cpp
|
| diff --git a/tools/pinspect.cpp b/tools/pinspect.cpp
|
| index 419b2ab5d555a112bb029b61a2fc1ccdc420adb9..1cbc2e19c3328d344b12e9edea171f63911911b2 100644
|
| --- a/tools/pinspect.cpp
|
| +++ b/tools/pinspect.cpp
|
| @@ -14,7 +14,7 @@
|
| #include "SkString.h"
|
| #include "SkDumpCanvas.h"
|
|
|
| -static SkPicture* inspect(const char path[]) {
|
| +static sk_sp<SkPicture> inspect(const char path[]) {
|
| SkFILEStream stream(path);
|
| if (!stream.isValid()) {
|
| printf("-- Can't open '%s'\n", path);
|
| @@ -33,7 +33,7 @@ static SkPicture* inspect(const char path[]) {
|
| }
|
|
|
| stream.rewind();
|
| - SkPicture* pic = SkPicture::CreateFromStream(&stream);
|
| + auto pic = SkPicture::MakeFromStream(&stream);
|
| if (nullptr == pic) {
|
| SkDebugf("Could not create SkPicture: %s\n", path);
|
| return nullptr;
|
| @@ -71,9 +71,9 @@ int tool_main(int argc, char** argv) {
|
| }
|
|
|
| for (; index < argc; ++index) {
|
| - SkAutoTUnref<SkPicture> pic(inspect(argv[index]));
|
| + auto pic(inspect(argv[index]));
|
| if (doDumpOps) {
|
| - dumpOps(pic);
|
| + dumpOps(pic.get());
|
| }
|
| if (index < argc - 1) {
|
| printf("\n");
|
|
|