Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 477623004: command_buffer: Support instanced path rendering in gpu command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-03-path-funcs
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698