diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-13 18:40:47 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-13 18:40:47 +0000 |
commit | 40d9293b62ca39683a108d853c0218dcd1379042 (patch) | |
tree | f082a08a98e9adb626e3b8bb95ca8801eec80c8e /src/gpu | |
parent | 508824bd4b944a77cefad527006e687e5cd927d2 (diff) |
Skip flush functions for disabled stages
Review URL: http://codereview.appspot.com/5483061
git-svn-id: http://skia.googlecode.com/svn/trunk@2870 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrGpuGLShaders.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gpu/GrGpuGLShaders.cpp b/src/gpu/GrGpuGLShaders.cpp index 5fe90b8b12..98ac1bfe2e 100644 --- a/src/gpu/GrGpuGLShaders.cpp +++ b/src/gpu/GrGpuGLShaders.cpp @@ -718,15 +718,17 @@ bool GrGpuGLShaders::flushGraphicsState(GrPrimitiveType type) { this->flushViewMatrix(); for (int s = 0; s < GrDrawState::kNumStages; ++s) { - this->flushTextureMatrix(s); + if (this->isStageEnabled(s)) { + this->flushTextureMatrix(s); - this->flushRadial2(s); + this->flushRadial2(s); - this->flushConvolution(s); + this->flushConvolution(s); - this->flushTexelSize(s); + this->flushTexelSize(s); - this->flushTextureDomain(s); + this->flushTextureDomain(s); + } } this->flushEdgeAAData(); resetDirtyFlags(); |