Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index ecaf5e6b622ed1954d44cdcfb9ea4504f395934b..aefbcba8ad5c82bf5316598c4ac16fa5d2f7b461 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -79,7 +79,8 @@ SkOffsetImageFilter::SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter |
fOffset.set(dx, dy); |
} |
-SkOffsetImageFilter::SkOffsetImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) { |
+SkOffsetImageFilter::SkOffsetImageFilter(SkFlattenableReadBuffer& buffer) |
+ : INHERITED(1, buffer) { |
buffer.readPoint(&fOffset); |
buffer.validate(SkScalarIsFinite(fOffset.fX) && |
SkScalarIsFinite(fOffset.fY)); |