Index: src/ports/SkImageDecoder_empty.cpp |
diff --git a/src/ports/SkImageDecoder_empty.cpp b/src/ports/SkImageDecoder_empty.cpp |
index 069cf7fbcbd78b1caaa57ae39088a4e9efc9f9e6..e5ad6da6eb979782541a5adbe8f7ac9081612760 100644 |
--- a/src/ports/SkImageDecoder_empty.cpp |
+++ b/src/ports/SkImageDecoder_empty.cpp |
@@ -11,10 +11,9 @@ |
#include "SkImageDecoder.h" |
#include "SkImageEncoder.h" |
#include "SkMovie.h" |
+#include "SkStream.h" |
class SkColorTable; |
-class SkStream; |
-class SkStreamRewindable; |
// Empty implementations for SkImageDecoder. |
@@ -48,6 +47,13 @@ bool SkImageDecoder::buildTileIndex(SkStreamRewindable*, int *width, int *height |
return false; |
} |
+bool SkImageDecoder::onBuildTileIndex(SkStreamRewindable* stream, |
+ int* /*width*/, int* /*height*/) { |
+ SkDELETE(stream); |
+ return false; |
+} |
+ |
+ |
bool SkImageDecoder::decodeSubset(SkBitmap*, const SkIRect&, SkColorType) { |
return false; |
} |