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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 unsigned bind_target, | 67 unsigned bind_target, |
68 unsigned target, | 68 unsigned target, |
69 int level, | 69 int level, |
70 unsigned format, | 70 unsigned format, |
71 unsigned type, | 71 unsigned type, |
72 int width, | 72 int width, |
73 int height, | 73 int height, |
74 bool is_texture_immutable)); | 74 bool is_texture_immutable)); |
75 MOCK_METHOD0(GetGLError, uint32()); | 75 MOCK_METHOD0(GetGLError, uint32()); |
76 MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback)); | 76 MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback)); |
| 77 MOCK_METHOD0(GetTextureUploadCount, uint32()); |
| 78 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); |
| 79 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); |
77 | 80 |
78 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 81 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
79 }; | 82 }; |
80 | 83 |
81 } // namespace gles2 | 84 } // namespace gles2 |
82 } // namespace gpu | 85 } // namespace gpu |
83 | 86 |
84 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 87 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
OLD | NEW |