Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index 502613bb68835caf66d4dcb4d893b90b6697a1ad..72e24413d09c680e6c9244f210af57254d7a8585 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -56,7 +56,7 @@ SkImageFilter::SkImageFilter(SkFlattenableReadBuffer& buffer) |
: fInputCount(buffer.readInt()), fInputs(new SkImageFilter*[fInputCount]) { |
for (int i = 0; i < fInputCount; i++) { |
if (buffer.readBool()) { |
- fInputs[i] = static_cast<SkImageFilter*>(buffer.readFlattenable()); |
+ fInputs[i] = buffer.readImageFilter(); |
} else { |
fInputs[i] = NULL; |
} |