Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_mock.h

Issue 205843002: GPU: Only restore one texture unit in ScopedTextureBinder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mock. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | ui/gl/gl_state_restorer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the mock GLES2Decoder class. 5 // This file contains the mock GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 MOCK_METHOD0(GetContextGroup, ContextGroup*()); 52 MOCK_METHOD0(GetContextGroup, ContextGroup*());
53 MOCK_METHOD0(GetContextState, const ContextState*()); 53 MOCK_METHOD0(GetContextState, const ContextState*());
54 MOCK_METHOD0(GetCapabilities, Capabilities()); 54 MOCK_METHOD0(GetCapabilities, Capabilities());
55 MOCK_METHOD0(ProcessPendingQueries, bool()); 55 MOCK_METHOD0(ProcessPendingQueries, bool());
56 MOCK_METHOD0(HasMoreIdleWork, bool()); 56 MOCK_METHOD0(HasMoreIdleWork, bool());
57 MOCK_METHOD0(PerformIdleWork, void()); 57 MOCK_METHOD0(PerformIdleWork, void());
58 MOCK_CONST_METHOD1(RestoreState, void(const ContextState* prev_state)); 58 MOCK_CONST_METHOD1(RestoreState, void(const ContextState* prev_state));
59 MOCK_CONST_METHOD0(RestoreActiveTexture, void()); 59 MOCK_CONST_METHOD0(RestoreActiveTexture, void());
60 MOCK_CONST_METHOD1( 60 MOCK_CONST_METHOD1(
61 RestoreAllTextureUnitBindings, void(const ContextState* state)); 61 RestoreAllTextureUnitBindings, void(const ContextState* state));
62 MOCK_CONST_METHOD1(
63 RestoreActiveTextureUnitBinding, void(unsigned int target));
62 MOCK_CONST_METHOD1(RestoreAttribute, void(unsigned index)); 64 MOCK_CONST_METHOD1(RestoreAttribute, void(unsigned index));
63 MOCK_CONST_METHOD0(RestoreBufferBindings, void()); 65 MOCK_CONST_METHOD0(RestoreBufferBindings, void());
64 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void()); 66 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void());
65 MOCK_CONST_METHOD0(RestoreGlobalState, void()); 67 MOCK_CONST_METHOD0(RestoreGlobalState, void());
66 MOCK_CONST_METHOD0(RestoreProgramBindings, void()); 68 MOCK_CONST_METHOD0(RestoreProgramBindings, void());
67 MOCK_CONST_METHOD0(RestoreRenderbufferBindings, void()); 69 MOCK_CONST_METHOD0(RestoreRenderbufferBindings, void());
68 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id)); 70 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id));
69 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit)); 71 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit));
70 MOCK_CONST_METHOD0(ClearAllAttributes, void()); 72 MOCK_CONST_METHOD0(ClearAllAttributes, void());
71 MOCK_CONST_METHOD0(RestoreAllAttributes, void()); 73 MOCK_CONST_METHOD0(RestoreAllAttributes, void());
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); 117 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool());
116 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); 118 MOCK_METHOD1(LoseContext, void(uint32 reset_status));
117 119
118 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 120 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
119 }; 121 };
120 122
121 } // namespace gles2 123 } // namespace gles2
122 } // namespace gpu 124 } // namespace gpu
123 125
124 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 126 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | ui/gl/gl_state_restorer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698