Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Unified Diff: tests/ImageDecodingTest.cpp

Issue 23477009: Change SkImageDecoders to take an SkStreamRewindable. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Remove accidental whitespace change Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/images/SkMovie.cpp ('K') | « src/utils/win/SkIStream.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ImageDecodingTest.cpp
diff --git a/tests/ImageDecodingTest.cpp b/tests/ImageDecodingTest.cpp
index afab02f7a57fe434bae14f9dcd11cbed7fea1a61..59afb07d52588b8803bc13eed5111603557f21f2 100644
--- a/tests/ImageDecodingTest.cpp
+++ b/tests/ImageDecodingTest.cpp
@@ -163,7 +163,7 @@ public:
}
protected:
- virtual bool onDecode(SkStream*, SkBitmap* bitmap, Mode) SK_OVERRIDE {
+ virtual bool onDecode(SkStreamRewindable*, SkBitmap* bitmap, Mode) SK_OVERRIDE {
return false;
}
};
@@ -194,7 +194,7 @@ static void test_unpremul(skiatest::Reporter* reporter) {
#ifdef SK_DEBUG
// Create a stream containing a bitmap encoded to Type type.
-static SkStream* create_image_stream(SkImageEncoder::Type type) {
+static SkMemoryStream* create_image_stream(SkImageEncoder::Type type) {
SkBitmap bm;
const int size = 50;
bm.setConfig(SkBitmap::kARGB_8888_Config, size, size);
@@ -233,7 +233,7 @@ static void test_stream_life() {
};
for (size_t i = 0; i < SK_ARRAY_COUNT(gTypes); ++i) {
SkDebugf("encoding to %i\n", i);
- SkAutoTUnref<SkStream> stream(create_image_stream(gTypes[i]));
+ SkAutoTUnref<SkMemoryStream> stream(create_image_stream(gTypes[i]));
if (NULL == stream.get()) {
SkDebugf("no stream\n");
continue;
« src/images/SkMovie.cpp ('K') | « src/utils/win/SkIStream.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698