| 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 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| 7 | 7 |
| 8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 void FailGLError(GLenum error); | 657 void FailGLError(GLenum error); |
| 658 #else | 658 #else |
| 659 void CheckGLError() { } | 659 void CheckGLError() { } |
| 660 void FailGLError(GLenum /* error */) { } | 660 void FailGLError(GLenum /* error */) { } |
| 661 #endif | 661 #endif |
| 662 | 662 |
| 663 void RemoveMappedBufferRangeByTarget(GLenum target); | 663 void RemoveMappedBufferRangeByTarget(GLenum target); |
| 664 void RemoveMappedBufferRangeById(GLuint buffer); | 664 void RemoveMappedBufferRangeById(GLuint buffer); |
| 665 void ClearMappedBufferRangeMap(); | 665 void ClearMappedBufferRangeMap(); |
| 666 | 666 |
| 667 void DrawElementsImpl(GLenum mode, GLsizei count, GLenum type, |
| 668 const void* indices, const char* func_name); |
| 669 |
| 667 GLES2Util util_; | 670 GLES2Util util_; |
| 668 GLES2CmdHelper* helper_; | 671 GLES2CmdHelper* helper_; |
| 669 TransferBufferInterface* transfer_buffer_; | 672 TransferBufferInterface* transfer_buffer_; |
| 670 std::string last_error_; | 673 std::string last_error_; |
| 671 DebugMarkerManager debug_marker_manager_; | 674 DebugMarkerManager debug_marker_manager_; |
| 672 std::string this_in_hex_; | 675 std::string this_in_hex_; |
| 673 | 676 |
| 674 std::queue<int32> swap_buffers_tokens_; | 677 std::queue<int32> swap_buffers_tokens_; |
| 675 std::queue<int32> rate_limit_tokens_; | 678 std::queue<int32> rate_limit_tokens_; |
| 676 | 679 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 | 837 |
| 835 inline bool GLES2Implementation::GetTexParameterivHelper( | 838 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 836 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 839 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 837 return false; | 840 return false; |
| 838 } | 841 } |
| 839 | 842 |
| 840 } // namespace gles2 | 843 } // namespace gles2 |
| 841 } // namespace gpu | 844 } // namespace gpu |
| 842 | 845 |
| 843 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 846 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |