Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index a1d29bf42791efb31255aedacd2de9b7d1d811ca..4054d5565a1472cf75da1d1483ca0fc3b583f0e8 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -164,7 +164,7 @@ SkDisplacementMapEffect* SkDisplacementMapEffect::Create(ChannelSelectorType xCh |
SkScalar scale, |
SkImageFilter* displacement, |
SkImageFilter* color, |
- const CropRect* cropRect) { |
+ const CropRect* cropRect, uint32_t uniqueID) { |
if (!channel_selector_type_is_valid(xChannelSelector) || |
!channel_selector_type_is_valid(yChannelSelector)) { |
return NULL; |
@@ -172,15 +172,16 @@ SkDisplacementMapEffect* SkDisplacementMapEffect::Create(ChannelSelectorType xCh |
SkImageFilter* inputs[2] = { displacement, color }; |
return SkNEW_ARGS(SkDisplacementMapEffect, (xChannelSelector, yChannelSelector, scale, |
- inputs, cropRect)); |
+ inputs, cropRect, uniqueID)); |
} |
SkDisplacementMapEffect::SkDisplacementMapEffect(ChannelSelectorType xChannelSelector, |
ChannelSelectorType yChannelSelector, |
SkScalar scale, |
SkImageFilter* inputs[2], |
- const CropRect* cropRect) |
- : INHERITED(2, inputs, cropRect) |
+ const CropRect* cropRect, |
+ uint32_t uniqueID) |
+ : INHERITED(2, inputs, cropRect, uniqueID) |
, fXChannelSelector(xChannelSelector) |
, fYChannelSelector(yChannelSelector) |
, fScale(scale) |
@@ -208,7 +209,7 @@ SkFlattenable* SkDisplacementMapEffect::CreateProc(SkReadBuffer& buffer) { |
ChannelSelectorType xsel = (ChannelSelectorType)buffer.readInt(); |
ChannelSelectorType ysel = (ChannelSelectorType)buffer.readInt(); |
SkScalar scale = buffer.readScalar(); |
- return Create(xsel, ysel, scale, common.getInput(0), common.getInput(1), &common.cropRect()); |
+ return Create(xsel, ysel, scale, common.getInput(0), common.getInput(1), &common.cropRect(), common.uniqueID()); |
} |
void SkDisplacementMapEffect::flatten(SkWriteBuffer& buffer) const { |