Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index 5de945ff076b67048bece4d9653d95ffb25edf57..4be8d7735184e11319e933e4cc8f867f38c2286a 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -384,15 +384,12 @@ bool SkDisplacementMapEffect::filterImageGPU(Proxy* proxy, const SkBitmap& src, |
SkBitmap* result, SkIPoint* offset) const { |
SkBitmap colorBM = src; |
SkIPoint colorOffset = SkIPoint::Make(0, 0); |
- if (this->getColorInput() && |
- !this->getColorInput()->getInputResultGPU(proxy, src, ctx, &colorBM, &colorOffset)) { |
+ if (!this->filterInputGPU(1, proxy, src, ctx, &colorBM, &colorOffset)) { |
return false; |
} |
SkBitmap displacementBM = src; |
SkIPoint displacementOffset = SkIPoint::Make(0, 0); |
- if (this->getDisplacementInput() && |
- !this->getDisplacementInput()->getInputResultGPU(proxy, src, ctx, &displacementBM, |
- &displacementOffset)) { |
+ if (!this->filterInputGPU(0, proxy, src, ctx, &displacementBM, &displacementOffset)) { |
return false; |
} |
SkIRect bounds; |