Index: tests/SurfaceTest.cpp |
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp |
index 0eebfeb4efe56aa7592089c3dcac7721e74c2e5b..0114fb66fc85b6be9fc0404aaa1c0511cec1ea33 100644 |
--- a/tests/SurfaceTest.cpp |
+++ b/tests/SurfaceTest.cpp |
@@ -251,7 +251,7 @@ static SkImage* createImage(ImageType imageType, GrContext* context, SkColor col |
bitmap.installPixels(info, addr, rowBytes); |
SkAutoTUnref<SkData> src( |
SkImageEncoder::EncodeData(bitmap, SkImageEncoder::kPNG_Type, 100)); |
- return SkImage::NewFromData(src); |
+ return SkImage::NewFromEncoded(src); |
} |
} |
SkASSERT(false); |