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