Index: tests/SurfaceTest.cpp |
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp |
index dcf9a859dd9639a6ef837e415c3cabd330403b5d..63e47f1997c2605b8010b18b218fd41accf840fd 100644 |
--- a/tests/SurfaceTest.cpp |
+++ b/tests/SurfaceTest.cpp |
@@ -7,6 +7,7 @@ |
#include "SkCanvas.h" |
#include "SkData.h" |
+#include "SkDecodingImageGenerator.h" |
#include "SkImageEncoder.h" |
#include "SkRRect.h" |
#include "SkSurface.h" |
@@ -108,7 +109,8 @@ static SkImage* createImage(ImageType imageType, GrContext* context, |
SkAutoTUnref<SkData> src( |
SkImageEncoder::EncodeData(bitmap, SkImageEncoder::kPNG_Type, |
100)); |
- return SkImage::NewEncodedData(src); |
+ return SkImage::NewFromGenerator( |
+ SkDecodingImageGenerator::Create(data, SkDecodingImageGenerator::Options())); |
} |
} |
SkASSERT(false); |