diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 21:25:55 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 21:25:55 +0000 |
commit | 21700451472d76b2b51fc181d127b95167b73fb3 (patch) | |
tree | 774377a127b79a4b12dbfe253f032850c196897c /gpu/command_buffer/service/gles2_cmd_decoder_mock.h | |
parent | 26b6336c8c915c96caacf67e05599a97cf1b0049 (diff) | |
download | chromium_src-21700451472d76b2b51fc181d127b95167b73fb3.zip chromium_src-21700451472d76b2b51fc181d127b95167b73fb3.tar.gz chromium_src-21700451472d76b2b51fc181d127b95167b73fb3.tar.bz2 |
GPU: Prefer to restore from decoder state rather than GL state when possible.
Some drivers are buggy. Wherever possible, use the decoder state restoration
for the Scoped{Texture,Framebuffer}Binders.
BUG=239509
Review URL: https://chromiumcodereview.appspot.com/15021011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_decoder_mock.h')
-rw-r--r-- | gpu/command_buffer/service/gles2_cmd_decoder_mock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h index eeecf17..12d1cbd 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h +++ b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h @@ -57,6 +57,7 @@ class MockGLES2Decoder : public GLES2Decoder { MOCK_METHOD0(PerformIdleWork, void()); MOCK_CONST_METHOD0(RestoreState, void()); MOCK_CONST_METHOD0(RestoreActiveTexture, void()); + MOCK_CONST_METHOD0(RestoreAllTextureUnitBindings, void()); MOCK_CONST_METHOD1(RestoreAttribute, void(unsigned index)); MOCK_CONST_METHOD0(RestoreBufferBindings, void()); MOCK_CONST_METHOD0(RestoreFramebufferBindings, void()); |