Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index cb28cbd34181627c57fae654914b480e48899663..58242b701715eb472b74cac641eb120e83abd818 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -677,7 +677,7 @@ |
const char *sharp_width) { |
fsBuilder->codeAppendf("\tfloat %s;\n", output); |
fsBuilder->codeAppendf("\t\t{\n"); |
- fsBuilder->codeAppendf("\t\t\tfloat coord = (0.5 * (abs(2.0*%s - %s) - %s) + 0.5)/%s;\n", |
+ fsBuilder->codeAppendf("\t\t\tfloat coord = (0.5 * (abs(2.0*%s - %s) - %s))/%s;\n", |
loc, blurred_width, sharp_width, profileSize); |
fsBuilder->codeAppendf("\t\t\t%s = ", output); |
fsBuilder->appendTextureLookup(sampler, "vec2(coord,0.5)"); |
@@ -769,7 +769,7 @@ |
GrRectBlurEffect::GrRectBlurEffect(const SkRect& rect, float sigma, GrTexture *blurProfile) |
: fRect(rect) |
, fSigma(sigma) |
- , fBlurProfileAccess(blurProfile, GrTextureParams::kBilerp_FilterMode) { |
+ , fBlurProfileAccess(blurProfile) { |
this->initClassID<GrRectBlurEffect>(); |
this->addTextureAccess(&fBlurProfileAccess); |
this->setWillReadFragmentPosition(); |