diff options
author | 2012-07-13 19:54:19 +0000 | |
---|---|---|
committer | 2012-07-13 19:54:19 +0000 | |
commit | e742bf0ab19659145325ac894f7e0b78c8efbd89 (patch) | |
tree | 8b71be2327a6d43a669161908c0f64ac632f80fa /src/gpu/GrContext.cpp | |
parent | 3cbbb543ef111ce55150835ef3e98de3be895e84 (diff) |
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
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r-- | src/gpu/GrContext.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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<GrCustomStage> 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); } |