Remove a few unused statements.
BUG= Review URL: https://codereview.chromium.org/837643003
This commit is contained in:
parent
4043d17c63
commit
2467d71346
@ -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);
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user