Index: src/core/SkImageFilterUtils.cpp |
diff --git a/src/core/SkImageFilterUtils.cpp b/src/core/SkImageFilterUtils.cpp |
index d6e109c1ad32ce83c903a36033337081724a6909..c88d5fed413a4b20a68de470473518fd6dfc47b9 100644 |
--- a/src/core/SkImageFilterUtils.cpp |
+++ b/src/core/SkImageFilterUtils.cpp |
@@ -20,15 +20,16 @@ bool SkImageFilterUtils::WrapTexture(GrTexture* texture, int width, int height, |
return true; |
} |
-bool SkImageFilterUtils::GetInputResultGPU(SkImageFilter* filter, SkImageFilter::Proxy* proxy, const SkBitmap& src, SkBitmap* result) { |
+bool SkImageFilterUtils::GetInputResultGPU(SkImageFilter* filter, SkImageFilter::Proxy* proxy, |
+ const SkBitmap& src, SkBitmap* result, |
+ SkIPoint* offset) { |
if (!filter) { |
*result = src; |
return true; |
} else if (filter->canFilterImageGPU()) { |
- return filter->filterImageGPU(proxy, src, result); |
+ return filter->filterImageGPU(proxy, src, result, offset); |
} else { |
- SkIPoint offset; |
- if (filter->filterImage(proxy, src, SkMatrix(), result, &offset)) { |
+ if (filter->filterImage(proxy, src, SkMatrix(), result, offset)) { |
if (!result->getTexture()) { |
GrContext* context = ((GrTexture *) src.getTexture())->getContext(); |
GrTexture* resultTex = GrLockAndRefCachedBitmapTexture(context, |