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