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

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

Issue 1909573002: Revert of command_buffer_gles2: Implement EGL default Display as a global object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@command_buffer_gles2-multiple-contexts
Patch Set: Created 4 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 MOCK_METHOD6(Initialize, 46 MOCK_METHOD6(Initialize,
47 bool(const scoped_refptr<gfx::GLSurface>& surface, 47 bool(const scoped_refptr<gfx::GLSurface>& surface,
48 const scoped_refptr<gfx::GLContext>& context, 48 const scoped_refptr<gfx::GLContext>& context,
49 bool offscreen, 49 bool offscreen,
50 const gfx::Size& size, 50 const gfx::Size& size,
51 const DisallowedFeatures& disallowed_features, 51 const DisallowedFeatures& disallowed_features,
52 const std::vector<int32_t>& attribs)); 52 const std::vector<int32_t>& attribs));
53 MOCK_METHOD1(Destroy, void(bool have_context)); 53 MOCK_METHOD1(Destroy, void(bool have_context));
54 MOCK_METHOD1(SetSurface, void(const scoped_refptr<gfx::GLSurface>& surface)); 54 MOCK_METHOD1(SetSurface, void(const scoped_refptr<gfx::GLSurface>& surface));
55 MOCK_METHOD0(ReleaseSurface, void());
56 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox)); 55 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox));
57 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); 56 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size));
58 MOCK_METHOD0(MakeCurrent, bool()); 57 MOCK_METHOD0(MakeCurrent, bool());
59 MOCK_METHOD1(GetServiceIdForTesting, uint32_t(uint32_t client_id)); 58 MOCK_METHOD1(GetServiceIdForTesting, uint32_t(uint32_t client_id));
60 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); 59 MOCK_METHOD0(GetGLES2Util, GLES2Util*());
61 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); 60 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*());
62 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); 61 MOCK_METHOD0(GetGLContext, gfx::GLContext*());
63 MOCK_METHOD0(GetContextGroup, ContextGroup*()); 62 MOCK_METHOD0(GetContextGroup, ContextGroup*());
64 MOCK_METHOD0(GetContextState, const ContextState*()); 63 MOCK_METHOD0(GetContextState, const ContextState*());
65 MOCK_METHOD0(GetCapabilities, Capabilities()); 64 MOCK_METHOD0(GetCapabilities, Capabilities());
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); 141 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool());
143 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); 142 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason));
144 143
145 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 144 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
146 }; 145 };
147 146
148 } // namespace gles2 147 } // namespace gles2
149 } // namespace gpu 148 } // namespace gpu
150 149
151 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 150 #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/tests/command_buffer_gles2_tests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698