Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index 95988f844c4c7ef7c96394295b8de185478c1e28..7518501aa5e21805ca4d5cfece09c97cda78699b 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -520,8 +520,7 @@ void SkImageFilter::WrapTexture(GrTexture* texture, int width, int height, SkBit |
bool SkImageFilter::filterInputGPU(int index, SkImageFilter::Proxy* proxy, |
const SkBitmap& src, const Context& origCtx, |
- SkBitmap* result, SkIPoint* offset, |
- bool relaxSizeConstraint) const { |
+ SkBitmap* result, SkIPoint* offset) const { |
SkImageFilter* input = this->getInput(index); |
if (!input) { |
return true; |
@@ -531,11 +530,7 @@ bool SkImageFilter::filterInputGPU(int index, SkImageFilter::Proxy* proxy, |
// called are restored before we return to the caller. |
GrContext* context = src.getTexture()->getContext(); |
- SizeConstraint constraint = origCtx.sizeConstraint(); |
- if (relaxSizeConstraint && (kExact_SizeConstraint == constraint)) { |
- constraint = kApprox_SizeConstraint; |
- } |
- Context ctx(origCtx.ctm(), origCtx.clipBounds(), origCtx.cache(), constraint); |
+ Context ctx(origCtx.ctm(), origCtx.clipBounds(), origCtx.cache(), kApprox_SizeConstraint); |
if (input->filterImage(proxy, src, this->mapContext(ctx), result, offset)) { |
if (!result->getTexture()) { |