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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 unsigned bind_target, | 73 unsigned bind_target, |
74 unsigned target, | 74 unsigned target, |
75 int level, | 75 int level, |
76 unsigned format, | 76 unsigned format, |
77 unsigned type, | 77 unsigned type, |
78 int width, | 78 int width, |
79 int height, | 79 int height, |
80 bool is_texture_immutable)); | 80 bool is_texture_immutable)); |
81 MOCK_METHOD0(GetGLError, uint32()); | 81 MOCK_METHOD0(GetGLError, uint32()); |
82 MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback)); | 82 MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback)); |
| 83 MOCK_METHOD1(SetWaitSyncPointCallback, |
| 84 void(const WaitSyncPointCallback& callback)); |
83 MOCK_METHOD0(GetTextureUploadCount, uint32()); | 85 MOCK_METHOD0(GetTextureUploadCount, uint32()); |
84 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); | 86 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); |
85 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); | 87 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); |
86 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); | 88 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); |
87 MOCK_METHOD0(WasContextLost, bool()); | 89 MOCK_METHOD0(WasContextLost, bool()); |
88 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); | 90 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); |
89 | 91 |
90 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 92 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
91 }; | 93 }; |
92 | 94 |
93 } // namespace gles2 | 95 } // namespace gles2 |
94 } // namespace gpu | 96 } // namespace gpu |
95 | 97 |
96 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 98 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
OLD | NEW |