Index: src/effects/SkEmbossMaskFilter.cpp |
diff --git a/src/effects/SkEmbossMaskFilter.cpp b/src/effects/SkEmbossMaskFilter.cpp |
index 8fcd272646a4421b2f6d367d771a601f882dc04c..4841b92816459ccd9c61b7e413d0b885cdeb38a1 100644 |
--- a/src/effects/SkEmbossMaskFilter.cpp |
+++ b/src/effects/SkEmbossMaskFilter.cpp |
@@ -124,6 +124,15 @@ |
return true; |
} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkEmbossMaskFilter::SkEmbossMaskFilter(SkReadBuffer& buffer) : SkMaskFilter(buffer) { |
+ SkASSERT(buffer.getArrayCount() == sizeof(Light)); |
+ buffer.readByteArray(&fLight, sizeof(Light)); |
+ SkASSERT(fLight.fPad == 0); // for the font-cache lookup to be clean |
+ fBlurSigma = buffer.readScalar(); |
+} |
+#endif |
+ |
SkFlattenable* SkEmbossMaskFilter::CreateProc(SkReadBuffer& buffer) { |
Light light; |
if (buffer.readByteArray(&light, sizeof(Light))) { |