forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert of Optimize GLES2DecoderImpl::ApplyDirtyState. (https://codere…
…view.chromium.org/245923008/) Reason for revert: Failing compile on win64 debug waterfall bot gpu\command_buffer\service\gles2_cmd_decoder_unittest.cc : fatalerror C1128: number of sections exceeded object file format limit : compile with /bigobj link: http://build.chromium.org/p/chromium.win/builders/Win%20x64%20Builder%20%28dbg%29/builds/7743 Original issue's description: > Optimize GLES2DecoderImpl::ApplyDirtyState. > > ApplyDirtyState can on average 30% of the time of GLES2 > draw calls. It previously set Color, Depth, Stencil masks > and several enables without checking if they changed. > > This change caches values used in ApplyDirtyState among > other places, and adds ContextState methods for setting > state with cache checks. > > New cached state aware Set methods: > * ContextState::SetDeviceCapabilityState > * ContextState::SetDeviceColorMask > * ContextState::SetDeviceDepthMask > * ContextState::SetDeviceStencilMaskSeparate > > Testing: > * gpu_unit tests now run both with cache on and off (ignore_cached_state_for_test = true) > to validate behavior independent of cache layering. > * New tests specific for caching behavior: > ** GLES2DecoderManualInitTest.ContextStateCapabilityCaching > ** GLES2DecoderManualInitTest.CachedColorMask > ** GLES2DecoderManualInitTest.CachedDepthMask > ** GLES2DecoderManualInitTest.CachedStencilMask > > BUG=347364 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267450 TBR=piman@chromium.org,jbates@chromium.org,oetuaho@nvidia.com,vmiura@chromium.org NOTREECHECKS=true NOTRY=true BUG=347364 Review URL: https://codereview.chromium.org/262793002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267465 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
tapted@chromium.org
committed
May 1, 2014
1 parent
6d0431a
commit 6781638
Showing
17 changed files
with
1,191 additions
and
1,821 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.