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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 | 640 |
641 // Pack 2D arrays of char into a bucket. | 641 // Pack 2D arrays of char into a bucket. |
642 // Helper function for ShaderSource(), TransformFeedbackVaryings(), etc. | 642 // Helper function for ShaderSource(), TransformFeedbackVaryings(), etc. |
643 bool PackStringsToBucket(GLsizei count, | 643 bool PackStringsToBucket(GLsizei count, |
644 const char* const* str, | 644 const char* const* str, |
645 const GLint* length, | 645 const GLint* length, |
646 const char* func_name); | 646 const char* func_name); |
647 | 647 |
648 const std::string& GetLogPrefix() const; | 648 const std::string& GetLogPrefix() const; |
649 | 649 |
| 650 bool PrepareInstancedPathCommand(const char* function_name, |
| 651 GLsizei num_paths, |
| 652 GLenum path_name_type, |
| 653 const void* paths, |
| 654 GLenum transform_type, |
| 655 const GLfloat* transform_values, |
| 656 ScopedTransferBufferPtr* buffer, |
| 657 uint32* out_paths_shm_id, |
| 658 size_t* out_paths_offset, |
| 659 uint32* out_transforms_shm_id, |
| 660 size_t* out_transforms_offset); |
650 #if defined(GL_CLIENT_FAIL_GL_ERRORS) | 661 #if defined(GL_CLIENT_FAIL_GL_ERRORS) |
651 void CheckGLError(); | 662 void CheckGLError(); |
652 void FailGLError(GLenum error); | 663 void FailGLError(GLenum error); |
653 #else | 664 #else |
654 void CheckGLError() { } | 665 void CheckGLError() { } |
655 void FailGLError(GLenum /* error */) { } | 666 void FailGLError(GLenum /* error */) { } |
656 #endif | 667 #endif |
657 | 668 |
658 void RemoveMappedBufferRangeByTarget(GLenum target); | 669 void RemoveMappedBufferRangeByTarget(GLenum target); |
659 void RemoveMappedBufferRangeById(GLuint buffer); | 670 void RemoveMappedBufferRangeById(GLuint buffer); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 | 846 |
836 inline bool GLES2Implementation::GetTexParameterivHelper( | 847 inline bool GLES2Implementation::GetTexParameterivHelper( |
837 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 848 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
838 return false; | 849 return false; |
839 } | 850 } |
840 | 851 |
841 } // namespace gles2 | 852 } // namespace gles2 |
842 } // namespace gpu | 853 } // namespace gpu |
843 | 854 |
844 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 855 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |