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

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

Issue 2764833003: Make gl_clear_broken workaround support core profile and use it under AMD Linux Catalyst driver (Closed)
Patch Set: uniform location should be GLint 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 MOCK_METHOD0(GetCreatedBackTextureCountForTest, size_t()); 59 MOCK_METHOD0(GetCreatedBackTextureCountForTest, size_t());
60 MOCK_METHOD1(ResizeOffscreenFramebuffer, bool(const gfx::Size& size)); 60 MOCK_METHOD1(ResizeOffscreenFramebuffer, bool(const gfx::Size& size));
61 MOCK_METHOD0(MakeCurrent, bool()); 61 MOCK_METHOD0(MakeCurrent, bool());
62 MOCK_METHOD1(GetServiceIdForTesting, uint32_t(uint32_t client_id)); 62 MOCK_METHOD1(GetServiceIdForTesting, uint32_t(uint32_t client_id));
63 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); 63 MOCK_METHOD0(GetGLES2Util, GLES2Util*());
64 MOCK_METHOD0(GetGLSurface, gl::GLSurface*()); 64 MOCK_METHOD0(GetGLSurface, gl::GLSurface*());
65 MOCK_METHOD0(GetGLContext, gl::GLContext*()); 65 MOCK_METHOD0(GetGLContext, gl::GLContext*());
66 MOCK_METHOD0(GetContextGroup, ContextGroup*()); 66 MOCK_METHOD0(GetContextGroup, ContextGroup*());
67 MOCK_CONST_METHOD0(GetFeatureInfo, const FeatureInfo*()); 67 MOCK_CONST_METHOD0(GetFeatureInfo, const FeatureInfo*());
68 MOCK_METHOD0(GetContextState, const ContextState*()); 68 MOCK_METHOD0(GetContextState, const ContextState*());
69 MOCK_METHOD1(GetTranslator, 69 MOCK_CONST_METHOD1(
70 scoped_refptr<ShaderTranslatorInterface>(unsigned int type)); 70 GetTranslator,
71 scoped_refptr<ShaderTranslatorInterface>(unsigned int type));
71 MOCK_METHOD0(GetCapabilities, Capabilities()); 72 MOCK_METHOD0(GetCapabilities, Capabilities());
72 MOCK_CONST_METHOD0(HasPendingQueries, bool()); 73 MOCK_CONST_METHOD0(HasPendingQueries, bool());
73 MOCK_METHOD1(ProcessPendingQueries, void(bool)); 74 MOCK_METHOD1(ProcessPendingQueries, void(bool));
74 MOCK_CONST_METHOD0(HasMoreIdleWork, bool()); 75 MOCK_CONST_METHOD0(HasMoreIdleWork, bool());
75 MOCK_METHOD0(PerformIdleWork, void()); 76 MOCK_METHOD0(PerformIdleWork, void());
76 MOCK_CONST_METHOD0(HasPollingWork, bool()); 77 MOCK_CONST_METHOD0(HasPollingWork, bool());
77 MOCK_METHOD0(PerformPollingWork, void()); 78 MOCK_METHOD0(PerformPollingWork, void());
78 MOCK_METHOD1(RestoreState, void(const ContextState* prev_state)); 79 MOCK_METHOD1(RestoreState, void(const ContextState* prev_state));
79 MOCK_CONST_METHOD0(RestoreActiveTexture, void()); 80 MOCK_CONST_METHOD0(RestoreActiveTexture, void());
80 MOCK_CONST_METHOD1( 81 MOCK_CONST_METHOD1(
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); 166 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool());
166 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); 167 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason));
167 168
168 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 169 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
169 }; 170 };
170 171
171 } // namespace gles2 172 } // namespace gles2
172 } // namespace gpu 173 } // namespace gpu
173 174
174 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 175 #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