Index: tools/viewer/ImageSlide.cpp |
diff --git a/tools/viewer/ImageSlide.cpp b/tools/viewer/ImageSlide.cpp |
index 7dcee5d5ac0fac6b278038b7ed1833bc79673803..78fb17b4b07f2fd79ab926ec7ba6cd39cf74df4e 100644 |
--- a/tools/viewer/ImageSlide.cpp |
+++ b/tools/viewer/ImageSlide.cpp |
@@ -37,7 +37,7 @@ void ImageSlide::draw(SkCanvas* canvas) { |
void ImageSlide::load(SkScalar, SkScalar) { |
sk_sp<SkData> encoded = SkData::MakeFromFileName(fPath.c_str()); |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(encoded.get())); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(encoded)); |
if (!codec) { |
return; |
} |