Remove a few unused statements.

BUG=

Review URL: https://codereview.chromium.org/837643003
This commit is contained in:
cwallez 2015-01-19 13:57:17 -08:00 committed by Commit bot
parent 4043d17c63
commit 2467d71346
2 changed files with 0 additions and 6 deletions

View File

@ -56,7 +56,6 @@ static void convolve_gaussian_1d(GrContext* context,
paint.reset();
SkAutoTUnref<GrFragmentProcessor> conv(GrConvolutionEffect::CreateGaussian(
texture, direction, radius, sigma, useBounds, bounds));
paint.reset();
paint.addColorProcessor(conv);
context->drawNonAARectToRect(paint, SkMatrix::I(), dstRect, srcRect);
}
@ -79,7 +78,6 @@ static void convolve_gaussian_2d(GrContext* context,
texture, bounds, size, 1.0, 0.0, kernelOffset,
useBounds ? GrTextureDomain::kClamp_Mode : GrTextureDomain::kIgnore_Mode,
true, sigmaX, sigmaY));
paint.reset();
paint.addColorProcessor(conv);
context->drawNonAARectToRect(paint, SkMatrix::I(), dstRect, srcRect);
}

View File

@ -29,7 +29,6 @@ private:
SkISize fKernelSize;
bool fConvolveAlpha;
UniformHandle fBoundsUni;
UniformHandle fKernelUni;
UniformHandle fImageIncrementUni;
UniformHandle fKernelOffsetUni;
@ -53,9 +52,6 @@ void GrGLMatrixConvolutionEffect::emitCode(GrGLFPBuilder* builder,
const TransformedCoordsArray& coords,
const TextureSamplerArray& samplers) {
const GrTextureDomain& domain = fp.cast<GrMatrixConvolutionEffect>().domain();
fBoundsUni = builder->addUniform(GrGLProgramBuilder::kFragment_Visibility,
kVec4f_GrSLType, kDefault_GrSLPrecision, "Bounds");
fImageIncrementUni = builder->addUniform(GrGLProgramBuilder::kFragment_Visibility,
kVec2f_GrSLType, kDefault_GrSLPrecision,
"ImageIncrement");