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 GLES2Decoder class. | 5 // This file contains the GLES2Decoder class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 int level, | 192 int level, |
193 unsigned format, | 193 unsigned format, |
194 unsigned type, | 194 unsigned type, |
195 int width, | 195 int width, |
196 int height, | 196 int height, |
197 bool is_texture_immutable) = 0; | 197 bool is_texture_immutable) = 0; |
198 | 198 |
199 // Gets the GL error for this context. | 199 // Gets the GL error for this context. |
200 virtual uint32 GetGLError() = 0; | 200 virtual uint32 GetGLError() = 0; |
201 | 201 |
| 202 // Sets a GL error. |
| 203 virtual void SetGLError( |
| 204 unsigned error, |
| 205 const char* function_name, |
| 206 const char* msg) = 0; |
| 207 virtual void SetGLErrorInvalidEnum( |
| 208 const char* function_name, |
| 209 unsigned value, |
| 210 const char* label) = 0; |
| 211 |
202 // A callback for messages from the decoder. | 212 // A callback for messages from the decoder. |
203 virtual void SetMsgCallback(const MsgCallback& callback) = 0; | 213 virtual void SetMsgCallback(const MsgCallback& callback) = 0; |
204 | 214 |
205 // Sets the callback for waiting on a sync point. The callback returns the | 215 // Sets the callback for waiting on a sync point. The callback returns the |
206 // scheduling status (i.e. true if the channel is still scheduled). | 216 // scheduling status (i.e. true if the channel is still scheduled). |
207 virtual void SetWaitSyncPointCallback( | 217 virtual void SetWaitSyncPointCallback( |
208 const WaitSyncPointCallback& callback) = 0; | 218 const WaitSyncPointCallback& callback) = 0; |
209 | 219 |
210 virtual uint32 GetTextureUploadCount() = 0; | 220 virtual uint32 GetTextureUploadCount() = 0; |
211 virtual base::TimeDelta GetTotalTextureUploadTime() = 0; | 221 virtual base::TimeDelta GetTotalTextureUploadTime() = 0; |
(...skipping 19 matching lines...) Expand all Loading... |
231 bool log_commands_; | 241 bool log_commands_; |
232 bool log_synthesized_gl_errors_; | 242 bool log_synthesized_gl_errors_; |
233 static bool testing_force_is_angle_; | 243 static bool testing_force_is_angle_; |
234 | 244 |
235 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 245 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
236 }; | 246 }; |
237 | 247 |
238 } // namespace gles2 | 248 } // namespace gles2 |
239 } // namespace gpu | 249 } // namespace gpu |
240 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 250 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |