Index: gm/image.cpp |
diff --git a/gm/image.cpp b/gm/image.cpp |
index c420c95eef5834977521bf533a71f2c2ba1fde51..5e840fbb2f8922b165db0f9364de8ddfe9b96010 100644 |
--- a/gm/image.cpp |
+++ b/gm/image.cpp |
@@ -24,7 +24,7 @@ static void drawJpeg(SkCanvas* canvas, const SkISize& size) { |
if (NULL == data.get()) { |
return; |
} |
- SkImage* image = SkImage::NewFromData(data); |
+ SkImage* image = SkImage::NewFromEncoded(data); |
if (image) { |
SkAutoCanvasRestore acr(canvas, true); |
canvas->scale(size.width() * 1.0f / image->width(), |