OLD | NEW |
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 Loading... |
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_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox)); | 55 MOCK_METHOD1(TakeFrontBuffer, void(const Mailbox& mailbox)); |
| 56 MOCK_METHOD2(ReturnFrontBuffer, void(const Mailbox& mailbox, bool is_lost)); |
| 57 MOCK_METHOD0(GetSavedBackTextureCountForTest, size_t()); |
| 58 MOCK_METHOD0(GetCreatedBackTextureCountForTest, size_t()); |
56 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); | 59 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); |
57 MOCK_METHOD0(MakeCurrent, bool()); | 60 MOCK_METHOD0(MakeCurrent, bool()); |
58 MOCK_METHOD1(GetServiceIdForTesting, uint32_t(uint32_t client_id)); | 61 MOCK_METHOD1(GetServiceIdForTesting, uint32_t(uint32_t client_id)); |
59 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); | 62 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); |
60 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); | 63 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); |
61 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); | 64 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); |
62 MOCK_METHOD0(GetContextGroup, ContextGroup*()); | 65 MOCK_METHOD0(GetContextGroup, ContextGroup*()); |
63 MOCK_METHOD0(GetContextState, const ContextState*()); | 66 MOCK_METHOD0(GetContextState, const ContextState*()); |
64 MOCK_METHOD0(GetCapabilities, Capabilities()); | 67 MOCK_METHOD0(GetCapabilities, Capabilities()); |
65 MOCK_CONST_METHOD0(HasPendingQueries, bool()); | 68 MOCK_CONST_METHOD0(HasPendingQueries, bool()); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); | 152 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); |
150 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); | 153 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); |
151 | 154 |
152 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 155 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
153 }; | 156 }; |
154 | 157 |
155 } // namespace gles2 | 158 } // namespace gles2 |
156 } // namespace gpu | 159 } // namespace gpu |
157 | 160 |
158 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 161 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
OLD | NEW |