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

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

Issue 2788793003: gpu: Support other buffer targets for ScopedBufferBinder (Closed)
Patch Set: Update{Pack,Unpack}Parameters() made public Created 3 years, 8 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
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 <stdint.h> 10 #include <stdint.h>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 MOCK_METHOD0(PerformIdleWork, void()); 75 MOCK_METHOD0(PerformIdleWork, void());
76 MOCK_CONST_METHOD0(HasPollingWork, bool()); 76 MOCK_CONST_METHOD0(HasPollingWork, bool());
77 MOCK_METHOD0(PerformPollingWork, void()); 77 MOCK_METHOD0(PerformPollingWork, void());
78 MOCK_METHOD1(RestoreState, void(const ContextState* prev_state)); 78 MOCK_METHOD1(RestoreState, void(const ContextState* prev_state));
79 MOCK_CONST_METHOD0(RestoreActiveTexture, void()); 79 MOCK_CONST_METHOD0(RestoreActiveTexture, void());
80 MOCK_CONST_METHOD1( 80 MOCK_CONST_METHOD1(
81 RestoreAllTextureUnitBindings, void(const ContextState* state)); 81 RestoreAllTextureUnitBindings, void(const ContextState* state));
82 MOCK_CONST_METHOD1( 82 MOCK_CONST_METHOD1(
83 RestoreActiveTextureUnitBinding, void(unsigned int target)); 83 RestoreActiveTextureUnitBinding, void(unsigned int target));
84 MOCK_METHOD0(RestoreAllExternalTextureBindingsIfNeeded, void()); 84 MOCK_METHOD0(RestoreAllExternalTextureBindingsIfNeeded, void());
85 MOCK_CONST_METHOD1(RestoreBufferBinding, void(unsigned int target)); 85 MOCK_METHOD1(RestoreBufferBinding, void(unsigned int target));
86 MOCK_CONST_METHOD0(RestoreBufferBindings, void()); 86 MOCK_CONST_METHOD0(RestoreBufferBindings, void());
87 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void()); 87 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void());
88 MOCK_CONST_METHOD0(RestoreGlobalState, void()); 88 MOCK_CONST_METHOD0(RestoreGlobalState, void());
89 MOCK_CONST_METHOD0(RestoreProgramBindings, void()); 89 MOCK_CONST_METHOD0(RestoreProgramBindings, void());
90 MOCK_METHOD0(RestoreRenderbufferBindings, void()); 90 MOCK_METHOD0(RestoreRenderbufferBindings, void());
91 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id)); 91 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id));
92 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit)); 92 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit));
93 MOCK_METHOD1(RestoreVertexAttribArray, void(unsigned index)); 93 MOCK_METHOD1(RestoreVertexAttribArray, void(unsigned index));
94 MOCK_CONST_METHOD0(ClearAllAttributes, void()); 94 MOCK_CONST_METHOD0(ClearAllAttributes, void());
95 MOCK_CONST_METHOD0(RestoreAllAttributes, void()); 95 MOCK_CONST_METHOD0(RestoreAllAttributes, void());
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); 167 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool());
168 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); 168 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason));
169 169
170 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 170 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
171 }; 171 };
172 172
173 } // namespace gles2 173 } // namespace gles2
174 } // namespace gpu 174 } // namespace gpu
175 175
176 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 176 #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') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698