Index: src/effects/SkColorCubeFilter.cpp |
diff --git a/src/effects/SkColorCubeFilter.cpp b/src/effects/SkColorCubeFilter.cpp |
index 30641c3c30ea26208ca3b9b6838bae5851c4e7fc..18c5b5603f39989c488b790f231723205b3942ce 100644 |
--- a/src/effects/SkColorCubeFilter.cpp |
+++ b/src/effects/SkColorCubeFilter.cpp |
@@ -161,6 +161,15 @@ |
} |
} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkColorCubeFilter::SkColorCubeFilter(SkReadBuffer& buffer) |
+ : fCache(buffer.readInt()) { |
+ fCubeData.reset(buffer.readByteArrayAsData()); |
+ buffer.validate(is_valid_3D_lut(fCubeData, fCache.cubeDimension())); |
+ fUniqueID = SkNextColorCubeUniqueID(); |
+} |
+#endif |
+ |
SkFlattenable* SkColorCubeFilter::CreateProc(SkReadBuffer& buffer) { |
int cubeDimension = buffer.readInt(); |
SkAutoDataUnref cubeData(buffer.readByteArrayAsData()); |