Index: src/effects/SkTableMaskFilter.cpp |
diff --git a/src/effects/SkTableMaskFilter.cpp b/src/effects/SkTableMaskFilter.cpp |
index dc9b335fd4820994618ab13820b0673b847d2aba..42b4ab6ff6d41cbdc3b613878cb0b7c17be0fcc3 100644 |
--- a/src/effects/SkTableMaskFilter.cpp |
+++ b/src/effects/SkTableMaskFilter.cpp |
@@ -82,6 +82,13 @@ |
return Create(table); |
} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkTableMaskFilter::SkTableMaskFilter(SkReadBuffer& rb) : INHERITED(rb) { |
+ SkASSERT(256 == rb.getArrayCount()); |
+ rb.readByteArray(fTable, 256); |
+} |
+#endif |
+ |
/////////////////////////////////////////////////////////////////////////////// |
void SkTableMaskFilter::MakeGammaTable(uint8_t table[256], SkScalar gamma) { |