| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 MOCK_METHOD9(ClearLevel, bool( | 80 MOCK_METHOD9(ClearLevel, bool( |
| 81 unsigned service_id, | 81 unsigned service_id, |
| 82 unsigned bind_target, | 82 unsigned bind_target, |
| 83 unsigned target, | 83 unsigned target, |
| 84 int level, | 84 int level, |
| 85 unsigned format, | 85 unsigned format, |
| 86 unsigned type, | 86 unsigned type, |
| 87 int width, | 87 int width, |
| 88 int height, | 88 int height, |
| 89 bool is_texture_immutable)); | 89 bool is_texture_immutable)); |
| 90 MOCK_METHOD0(GetGLError, uint32()); | 90 MOCK_METHOD0(GetGLError, uint32()); |
| 91 MOCK_METHOD3(SetGLError, void( |
| 92 unsigned error, const char* function_name, const char* msg)); |
| 93 MOCK_METHOD3(SetGLErrorInvalidEnum, void( |
| 94 const char* function_name, unsigned value, const char* label)); |
| 91 MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback)); | 95 MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback)); |
| 92 MOCK_METHOD1(SetWaitSyncPointCallback, | 96 MOCK_METHOD1(SetWaitSyncPointCallback, |
| 93 void(const WaitSyncPointCallback& callback)); | 97 void(const WaitSyncPointCallback& callback)); |
| 94 MOCK_METHOD0(GetTextureUploadCount, uint32()); | 98 MOCK_METHOD0(GetTextureUploadCount, uint32()); |
| 95 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); | 99 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); |
| 96 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); | 100 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); |
| 97 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); | 101 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); |
| 98 MOCK_METHOD0(WasContextLost, bool()); | 102 MOCK_METHOD0(WasContextLost, bool()); |
| 99 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); | 103 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); |
| 100 | 104 |
| 101 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 105 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 102 }; | 106 }; |
| 103 | 107 |
| 104 } // namespace gles2 | 108 } // namespace gles2 |
| 105 } // namespace gpu | 109 } // namespace gpu |
| 106 | 110 |
| 107 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 111 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |