Index: src/core/SkFlattenableSerialization.cpp |
diff --git a/src/core/SkFlattenableSerialization.cpp b/src/core/SkFlattenableSerialization.cpp |
index b74c82f051648f77dce5da97b26e21ba53b12e4b..cda3182835656c01a70970c3a34a919c3469bfb2 100644 |
--- a/src/core/SkFlattenableSerialization.cpp |
+++ b/src/core/SkFlattenableSerialization.cpp |
@@ -9,6 +9,7 @@ |
#include "SkData.h" |
#include "SkFlattenable.h" |
+#include "SkImageFilter.h" |
#include "SkOrderedReadBuffer.h" |
#include "SkOrderedWriteBuffer.h" |
@@ -22,7 +23,9 @@ SkData* SkSerializeFlattenable(SkFlattenable* flattenable) { |
return SkData::NewFromMalloc(data, size); |
} |
+// TODO: this guy should be renamed to ImageFilter, or take SkEffectType as |
+// a parameter. |
SkFlattenable* SkDeserializeFlattenable(const void* data, size_t size) { |
SkOrderedReadBuffer buffer(data, size); |
- return buffer.readFlattenable(); |
+ return buffer.readImageFilter(); |
} |