Index: src/effects/SkEmbossMaskFilter.cpp |
diff --git a/src/effects/SkEmbossMaskFilter.cpp b/src/effects/SkEmbossMaskFilter.cpp |
index 31beb511d5c165a2d66de71ec667796369e2bdde..2d3125000c0f4d4697ade6eaf253e820e7b626cb 100644 |
--- a/src/effects/SkEmbossMaskFilter.cpp |
+++ b/src/effects/SkEmbossMaskFilter.cpp |
@@ -132,7 +132,7 @@ bool SkEmbossMaskFilter::filterMask(SkMask* dst, const SkMask& src, |
SkEmbossMaskFilter::SkEmbossMaskFilter(SkFlattenableReadBuffer& buffer) |
: SkMaskFilter(buffer) { |
SkASSERT(buffer.getArrayCount() == sizeof(Light)); |
- buffer.readByteArray(&fLight); |
+ buffer.readByteArray(&fLight, sizeof(Light)); |
SkASSERT(fLight.fPad == 0); // for the font-cache lookup to be clean |
fBlurSigma = buffer.readScalar(); |
#ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V13_AND_ALL_OTHER_INSTANCES_TOO |