Index: tools/get_images_from_skps.cpp |
diff --git a/tools/get_images_from_skps.cpp b/tools/get_images_from_skps.cpp |
index 11b99c214d1f9b5ea3753057033603ae23d60807..f9ba34b0f26f69b59bf1c4640dd9d3501a8e5c67 100644 |
--- a/tools/get_images_from_skps.cpp |
+++ b/tools/get_images_from_skps.cpp |
@@ -53,8 +53,8 @@ struct Sniffer : public SkPixelSerializer { |
} |
gSeen.add(digest); |
- SkAutoTUnref<SkData> data(SkData::NewWithoutCopy(ptr, len)); |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data)); |
+ sk_sp<SkData> data(SkData::MakeWithoutCopy(ptr, len)); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get())); |
if (!codec) { |
// FIXME: This code is currently unreachable because we create an empty generator when |
// we fail to create a codec. |