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

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

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox)); 50 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox));
51 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); 51 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size));
52 MOCK_METHOD0(MakeCurrent, bool()); 52 MOCK_METHOD0(MakeCurrent, bool());
53 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); 53 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id));
54 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); 54 MOCK_METHOD0(GetGLES2Util, GLES2Util*());
55 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); 55 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*());
56 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); 56 MOCK_METHOD0(GetGLContext, gfx::GLContext*());
57 MOCK_METHOD0(GetContextGroup, ContextGroup*()); 57 MOCK_METHOD0(GetContextGroup, ContextGroup*());
58 MOCK_METHOD0(GetContextState, const ContextState*()); 58 MOCK_METHOD0(GetContextState, const ContextState*());
59 MOCK_METHOD0(GetCapabilities, Capabilities()); 59 MOCK_METHOD0(GetCapabilities, Capabilities());
60 MOCK_METHOD0(ProcessPendingQueries, bool()); 60 MOCK_METHOD1(ProcessPendingQueries, bool(bool));
61 MOCK_METHOD0(HasMoreIdleWork, bool()); 61 MOCK_METHOD0(HasMoreIdleWork, bool());
62 MOCK_METHOD0(PerformIdleWork, void()); 62 MOCK_METHOD0(PerformIdleWork, void());
63 MOCK_METHOD1(RestoreState, void(const ContextState* prev_state)); 63 MOCK_METHOD1(RestoreState, void(const ContextState* prev_state));
64 MOCK_CONST_METHOD0(RestoreActiveTexture, void()); 64 MOCK_CONST_METHOD0(RestoreActiveTexture, void());
65 MOCK_CONST_METHOD1( 65 MOCK_CONST_METHOD1(
66 RestoreAllTextureUnitBindings, void(const ContextState* state)); 66 RestoreAllTextureUnitBindings, void(const ContextState* state));
67 MOCK_CONST_METHOD1( 67 MOCK_CONST_METHOD1(
68 RestoreActiveTextureUnitBinding, void(unsigned int target)); 68 RestoreActiveTextureUnitBinding, void(unsigned int target));
69 MOCK_CONST_METHOD0(RestoreBufferBindings, void()); 69 MOCK_CONST_METHOD0(RestoreBufferBindings, void());
70 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void()); 70 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void());
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); 128 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool());
129 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); 129 MOCK_METHOD1(LoseContext, void(uint32 reset_status));
130 130
131 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 131 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
132 }; 132 };
133 133
134 } // namespace gles2 134 } // namespace gles2
135 } // namespace gpu 135 } // namespace gpu
136 136
137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698