OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 GLES2DecoderPassthroughImpl class. | 5 // This file contains the GLES2DecoderPassthroughImpl class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 void InsertError(GLenum error, const std::string& message); | 296 void InsertError(GLenum error, const std::string& message); |
297 GLenum PopError(); | 297 GLenum PopError(); |
298 bool FlushErrors(); | 298 bool FlushErrors(); |
299 | 299 |
300 bool IsEmulatedQueryTarget(GLenum target) const; | 300 bool IsEmulatedQueryTarget(GLenum target) const; |
301 error::Error ProcessQueries(bool did_finish); | 301 error::Error ProcessQueries(bool did_finish); |
302 void RemovePendingQuery(GLuint service_id); | 302 void RemovePendingQuery(GLuint service_id); |
303 | 303 |
304 void UpdateTextureBinding(GLenum target, GLuint client_id, GLuint service_id); | 304 void UpdateTextureBinding(GLenum target, GLuint client_id, GLuint service_id); |
305 | 305 |
306 error::Error BindTexImage2DCHROMIUMImpl(GLenum target, | |
307 GLenum internalformat, | |
308 GLint image_id); | |
309 | |
310 int commands_to_process_; | 306 int commands_to_process_; |
311 | 307 |
312 DebugMarkerManager debug_marker_manager_; | 308 DebugMarkerManager debug_marker_manager_; |
313 Logger logger_; | 309 Logger logger_; |
314 | 310 |
315 #define GLES2_CMD_OP(name) \ | 311 #define GLES2_CMD_OP(name) \ |
316 Error Handle##name(uint32_t immediate_data_size, const volatile void* data); | 312 Error Handle##name(uint32_t immediate_data_size, const volatile void* data); |
317 | 313 |
318 GLES2_COMMAND_LIST(GLES2_CMD_OP) | 314 GLES2_COMMAND_LIST(GLES2_CMD_OP) |
319 #undef GLES2_CMD_OP | 315 #undef GLES2_CMD_OP |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 401 |
406 // Include the prototypes of all the doer functions from a separate header to | 402 // Include the prototypes of all the doer functions from a separate header to |
407 // keep this file clean. | 403 // keep this file clean. |
408 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp
es.h" | 404 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp
es.h" |
409 }; | 405 }; |
410 | 406 |
411 } // namespace gles2 | 407 } // namespace gles2 |
412 } // namespace gpu | 408 } // namespace gpu |
413 | 409 |
414 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ | 410 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ |
OLD | NEW |