Index: tests/SurfaceTest.cpp |
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp |
index d8c6d9d76caa5d883b2edf97977538fd229360b1..c09d97cabed17855b67c71ec1ea57b65b1e2f446 100644 |
--- a/tests/SurfaceTest.cpp |
+++ b/tests/SurfaceTest.cpp |
@@ -7,7 +7,6 @@ |
#include "SkCanvas.h" |
#include "SkData.h" |
-#include "SkDecodingImageGenerator.h" |
#include "SkImageEncoder.h" |
#include "SkRRect.h" |
#include "SkSurface.h" |
@@ -139,8 +138,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::NewFromGenerator( |
- SkDecodingImageGenerator::Create(src, SkDecodingImageGenerator::Options())); |
+ return SkImage::NewFromData(src); |
} |
} |
SkASSERT(false); |