| 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 <vector> | 10 #include <vector> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); | 50 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); |
| 51 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); | 51 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); |
| 52 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); | 52 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); |
| 53 MOCK_METHOD0(GetContextGroup, ContextGroup*()); | 53 MOCK_METHOD0(GetContextGroup, ContextGroup*()); |
| 54 MOCK_METHOD0(ProcessPendingQueries, bool()); | 54 MOCK_METHOD0(ProcessPendingQueries, bool()); |
| 55 MOCK_CONST_METHOD0(RestoreState, void()); | 55 MOCK_CONST_METHOD0(RestoreState, void()); |
| 56 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); | 56 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); |
| 57 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); | 57 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); |
| 58 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&)); | 58 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&)); |
| 59 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); | 59 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); |
| 60 MOCK_METHOD0(GetAsyncPixelTransferDelegate, |
| 61 gfx::AsyncPixelTransferDelegate*()); |
| 62 MOCK_METHOD1(SetAsyncPixelTransferDelegate, |
| 63 void(gfx::AsyncPixelTransferDelegate*)); |
| 60 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, | 64 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, |
| 61 unsigned int arg_count, | 65 unsigned int arg_count, |
| 62 const void* cmd_data)); | 66 const void* cmd_data)); |
| 63 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, | 67 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, |
| 64 uint32* service_texture_id)); | 68 uint32* service_texture_id)); |
| 65 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); | 69 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); |
| 66 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); | 70 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); |
| 67 MOCK_METHOD9(ClearLevel, bool( | 71 MOCK_METHOD9(ClearLevel, bool( |
| 68 unsigned service_id, | 72 unsigned service_id, |
| 69 unsigned bind_target, | 73 unsigned bind_target, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 82 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); | 86 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); |
| 83 MOCK_METHOD0(WasContextLost, bool()); | 87 MOCK_METHOD0(WasContextLost, bool()); |
| 84 | 88 |
| 85 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 89 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 86 }; | 90 }; |
| 87 | 91 |
| 88 } // namespace gles2 | 92 } // namespace gles2 |
| 89 } // namespace gpu | 93 } // namespace gpu |
| 90 | 94 |
| 91 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 95 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |