diff options
author | 2012-05-04 16:34:52 +0000 | |
---|---|---|
committer | 2012-05-04 16:34:52 +0000 | |
commit | 28b4bce1b13bf2e2b2e27d293a319133c17831cf (patch) | |
tree | 7ec84844780bda44c54df092933c4121b8f0697b /src/gpu/gl/GrGpuGL.cpp | |
parent | c1992933f1d97edd3f2f4c7dcbd81ffea6f6c1d8 (diff) |
Fix for performance regression due to r3832
http://codereview.appspot.com/6188045/
git-svn-id: http://skia.googlecode.com/svn/trunk@3840 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGpuGL.cpp')
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index a06b0084aa..9aa9b318f8 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -2239,8 +2239,10 @@ bool GrGpuGL::flushGLStateCommon(GrPrimitiveType type) { // relies on detecting when the kModifyStencilClip_StateBit state has // changed since the last draw. fHWDrawState.copyStateFlags(*drawState); + + // TODO: may no longer need this // only GrInOrderDrawBuffer ever needs to ref/unref the textures - fHWDrawState.disableState(GrDrawState::kTexturesNeedRef_StateBit); + fHWDrawState.disableBehavior(GrDrawState::kTexturesNeedRef_BehaviorBit); return true; } |