Index: samplecode/SampleEncode.cpp |
diff --git a/samplecode/SampleEncode.cpp b/samplecode/SampleEncode.cpp |
index e65b2d38554196c1b5fb1f95526e22a57f1b51e9..6a6f024f97fabf7f7979cef2a539ceab246f2dbf 100644 |
--- a/samplecode/SampleEncode.cpp |
+++ b/samplecode/SampleEncode.cpp |
@@ -9,7 +9,7 @@ |
#include "SkView.h" |
#include "SkCanvas.h" |
#include "SkData.h" |
-#include "SkDecodingImageGenerator.h" |
+#include "SkImageGenerator.h" |
#include "SkGradientShader.h" |
#include "SkGraphics.h" |
#include "SkImageDecoder.h" |
@@ -194,9 +194,7 @@ protected: |
} |
if (encoded) { |
if (!SkInstallDiscardablePixelRef( |
- SkDecodingImageGenerator::Create(encoded, |
- SkDecodingImageGenerator::Options()), |
- &bm)) { |
+ SkImageGenerator::NewFromData(encoded), &bm)) { |
SkDebugf("[%s:%d] failed to decode %s%s\n", |
__FILE__, __LINE__,gConfigLabels[i], gExt[j]); |
} |