Index: src/gpu/GrTextureParamsAdjuster.cpp |
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp |
index 37f1d8156efe833ed17b1cbb13a49f8fc38abf9c..d541995aefaf746a9b50546419d0aaa21b55243e 100644 |
--- a/src/gpu/GrTextureParamsAdjuster.cpp |
+++ b/src/gpu/GrTextureParamsAdjuster.cpp |
@@ -92,10 +92,10 @@ static GrTexture* copy_on_gpu(GrTexture* inputTexture, const SkIRect* subset, |
paint.addColorFragmentProcessor( |
GrTextureDomainEffect::Create(inputTexture, SkMatrix::I(), domain, |
GrTextureDomain::kClamp_Mode, |
- copyParams.fFilter))->unref(); |
+ copyParams.fFilter, kLocal_GrCoordSet, copy->asRenderTarget()))->unref(); |
} else { |
GrTextureParams params(SkShader::kClamp_TileMode, copyParams.fFilter); |
- paint.addColorTextureProcessor(inputTexture, SkMatrix::I(), params); |
+ paint.addColorTextureProcessor(inputTexture, SkMatrix::I(), params, copy->asRenderTarget()); |
} |
SkRect localRect; |
@@ -327,7 +327,8 @@ const GrFragmentProcessor* GrTextureAdjuster::createFragmentProcessor( |
const SkRect& constraintRect, |
FilterConstraint filterConstraint, |
bool coordsLimitedToConstraintRect, |
- const GrTextureParams::FilterMode* filterOrNullForBicubic) { |
+ const GrTextureParams::FilterMode* filterOrNullForBicubic, |
+ GrRenderTarget* dst) { |
const SkIRect* contentArea = this->contentAreaOrNull(); |
@@ -359,18 +360,18 @@ const GrFragmentProcessor* GrTextureAdjuster::createFragmentProcessor( |
if (kDomain_DomainMode == domainMode) { |
return GrTextureDomainEffect::Create(texture, textureMatrix, domain, |
GrTextureDomain::kClamp_Mode, |
- *filterOrNullForBicubic); |
+ *filterOrNullForBicubic, kLocal_GrCoordSet, dst); |
} else { |
GrTextureParams params(SkShader::kClamp_TileMode, *filterOrNullForBicubic); |
- return GrSimpleTextureEffect::Create(texture, textureMatrix, params); |
+ return GrSimpleTextureEffect::Create(texture, textureMatrix, params, kLocal_GrCoordSet, dst); |
} |
} else { |
if (kDomain_DomainMode == domainMode) { |
- return GrBicubicEffect::Create(texture, textureMatrix, domain); |
+ return GrBicubicEffect::Create(texture, textureMatrix, domain, dst); |
} else { |
static const SkShader::TileMode kClampClamp[] = |
{ SkShader::kClamp_TileMode, SkShader::kClamp_TileMode }; |
- return GrBicubicEffect::Create(texture, textureMatrix, kClampClamp); |
+ return GrBicubicEffect::Create(texture, textureMatrix, kClampClamp, dst); |
} |
} |
} |