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