From e742bf0ab19659145325ac894f7e0b78c8efbd89 Mon Sep 17 00:00:00 2001 From: "tomhudson@google.com" Date: Fri, 13 Jul 2012 19:54:19 +0000 Subject: Start removing calls to GrDrawState::setTexture() (and GrPaint::setTexture()?) when there's a GrSingleTextureEffect involved holding the texture. http://codereview.appspot.com/6353094/ git-svn-id: http://skia.googlecode.com/svn/trunk@4608 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrContext.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/gpu/GrContext.cpp') diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 95e0ecac63..e70ac5c2ca 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -246,7 +246,6 @@ void apply_morphology(GrGpu* gpu, SkAutoTUnref morph( SkNEW_ARGS(GrMorphologyEffect, (texture, direction, radius, morphType))); drawState->sampler(0)->setCustomStage(morph); - drawState->setTexture(0, texture); gpu->drawSimpleRect(rect, NULL, 1 << 0); } @@ -267,7 +266,6 @@ void convolve_gaussian(GrGpu* gpu, (texture, direction, radius))); conv->setGaussianKernel(sigma); drawState->sampler(0)->setCustomStage(conv); - drawState->setTexture(0, texture); gpu->drawSimpleRect(rect, NULL, 1 << 0); } -- cgit v1.2.3