| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 MOCK_METHOD6(Initialize, | 47 MOCK_METHOD6(Initialize, |
| 48 bool(const scoped_refptr<gfx::GLSurface>& surface, | 48 bool(const scoped_refptr<gfx::GLSurface>& surface, |
| 49 const scoped_refptr<gfx::GLContext>& context, | 49 const scoped_refptr<gfx::GLContext>& context, |
| 50 bool offscreen, | 50 bool offscreen, |
| 51 const gfx::Size& size, | 51 const gfx::Size& size, |
| 52 const DisallowedFeatures& disallowed_features, | 52 const DisallowedFeatures& disallowed_features, |
| 53 const ContextCreationAttribHelper& attrib_helper)); | 53 const ContextCreationAttribHelper& attrib_helper)); |
| 54 MOCK_METHOD1(Destroy, void(bool have_context)); | 54 MOCK_METHOD1(Destroy, void(bool have_context)); |
| 55 MOCK_METHOD1(SetSurface, void(const scoped_refptr<gfx::GLSurface>& surface)); | 55 MOCK_METHOD1(SetSurface, void(const scoped_refptr<gfx::GLSurface>& surface)); |
| 56 MOCK_METHOD0(ReleaseSurface, void()); | 56 MOCK_METHOD0(ReleaseSurface, void()); |
| 57 MOCK_METHOD1(TakeFrontBuffer, void(const Mailbox& mailbox)); | 57 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox)); |
| 58 MOCK_METHOD2(ReturnFrontBuffer, void(const Mailbox& mailbox, bool is_lost)); | |
| 59 MOCK_METHOD0(GetSavedBackTextureCountForTest, size_t()); | |
| 60 MOCK_METHOD0(GetCreatedBackTextureCountForTest, size_t()); | |
| 61 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); | 58 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); |
| 62 MOCK_METHOD0(MakeCurrent, bool()); | 59 MOCK_METHOD0(MakeCurrent, bool()); |
| 63 MOCK_METHOD1(GetServiceIdForTesting, uint32_t(uint32_t client_id)); | 60 MOCK_METHOD1(GetServiceIdForTesting, uint32_t(uint32_t client_id)); |
| 64 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); | 61 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); |
| 65 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); | 62 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); |
| 66 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); | 63 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); |
| 67 MOCK_METHOD0(GetContextGroup, ContextGroup*()); | 64 MOCK_METHOD0(GetContextGroup, ContextGroup*()); |
| 68 MOCK_METHOD0(GetContextState, const ContextState*()); | 65 MOCK_METHOD0(GetContextState, const ContextState*()); |
| 69 MOCK_METHOD0(GetCapabilities, Capabilities()); | 66 MOCK_METHOD0(GetCapabilities, Capabilities()); |
| 70 MOCK_CONST_METHOD0(HasPendingQueries, bool()); | 67 MOCK_CONST_METHOD0(HasPendingQueries, bool()); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); | 153 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 157 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); | 154 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); |
| 158 | 155 |
| 159 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 156 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 160 }; | 157 }; |
| 161 | 158 |
| 162 } // namespace gles2 | 159 } // namespace gles2 |
| 163 } // namespace gpu | 160 } // namespace gpu |
| 164 | 161 |
| 165 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 162 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |