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_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); | 80 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); |
81 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, | 81 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, |
82 void(AsyncPixelTransferManager*)); | 82 void(AsyncPixelTransferManager*)); |
83 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, | 83 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, |
84 unsigned int arg_count, | 84 unsigned int arg_count, |
85 const void* cmd_data)); | 85 const void* cmd_data)); |
86 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, | 86 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, |
87 uint32* service_texture_id)); | 87 uint32* service_texture_id)); |
88 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); | 88 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); |
89 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); | 89 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); |
90 MOCK_METHOD9(ClearLevel, bool( | 90 MOCK_METHOD10(ClearLevel, bool( |
91 unsigned service_id, | 91 unsigned service_id, |
92 unsigned bind_target, | 92 unsigned bind_target, |
93 unsigned target, | 93 unsigned target, |
94 int level, | 94 int level, |
| 95 unsigned internal_format, |
95 unsigned format, | 96 unsigned format, |
96 unsigned type, | 97 unsigned type, |
97 int width, | 98 int width, |
98 int height, | 99 int height, |
99 bool is_texture_immutable)); | 100 bool is_texture_immutable)); |
100 MOCK_METHOD0(GetErrorState, ErrorState *()); | 101 MOCK_METHOD0(GetErrorState, ErrorState *()); |
101 | 102 |
102 MOCK_METHOD0(GetLogger, Logger*()); | 103 MOCK_METHOD0(GetLogger, Logger*()); |
103 MOCK_METHOD1(SetShaderCacheCallback, | 104 MOCK_METHOD1(SetShaderCacheCallback, |
104 void(const ShaderCacheCallback& callback)); | 105 void(const ShaderCacheCallback& callback)); |
105 MOCK_METHOD1(SetWaitSyncPointCallback, | 106 MOCK_METHOD1(SetWaitSyncPointCallback, |
106 void(const WaitSyncPointCallback& callback)); | 107 void(const WaitSyncPointCallback& callback)); |
107 MOCK_METHOD1(WaitForReadPixels, | 108 MOCK_METHOD1(WaitForReadPixels, |
108 void(base::Closure callback)); | 109 void(base::Closure callback)); |
109 MOCK_METHOD0(GetTextureUploadCount, uint32()); | 110 MOCK_METHOD0(GetTextureUploadCount, uint32()); |
110 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); | 111 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); |
111 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); | 112 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); |
112 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); | 113 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); |
113 MOCK_METHOD0(WasContextLost, bool()); | 114 MOCK_METHOD0(WasContextLost, bool()); |
114 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); | 115 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); |
115 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); | 116 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 118 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace gles2 | 121 } // namespace gles2 |
121 } // namespace gpu | 122 } // namespace gpu |
122 | 123 |
123 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 124 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
OLD | NEW |