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

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

Issue 902943002: Refactor for GPU command buffer PUTSTR code generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: working Created 5 years, 10 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 <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 // Free every async upload buffer. If some async upload buffer is still in use 618 // Free every async upload buffer. If some async upload buffer is still in use
619 // wait for them to finish before freeing. 619 // wait for them to finish before freeing.
620 void FreeAllAsyncUploadBuffers(); 620 void FreeAllAsyncUploadBuffers();
621 621
622 bool GetBoundPixelTransferBuffer( 622 bool GetBoundPixelTransferBuffer(
623 GLenum target, const char* function_name, GLuint* buffer_id); 623 GLenum target, const char* function_name, GLuint* buffer_id);
624 BufferTracker::Buffer* GetBoundPixelUnpackTransferBufferIfValid( 624 BufferTracker::Buffer* GetBoundPixelUnpackTransferBufferIfValid(
625 GLuint buffer_id, 625 GLuint buffer_id,
626 const char* function_name, GLuint offset, GLsizei size); 626 const char* function_name, GLuint offset, GLsizei size);
627 627
628 // Pack 2D arrays of char into a bucket.
629 // Helper function for ShaderSource(), TransformFeedbackVaryings(), etc.
630 bool PackStringsToBucket(GLsizei count,
631 const char* const* str,
632 const GLint* length,
633 const char* func_name);
634
628 const std::string& GetLogPrefix() const; 635 const std::string& GetLogPrefix() const;
629 636
630 #if defined(GL_CLIENT_FAIL_GL_ERRORS) 637 #if defined(GL_CLIENT_FAIL_GL_ERRORS)
631 void CheckGLError(); 638 void CheckGLError();
632 void FailGLError(GLenum error); 639 void FailGLError(GLenum error);
633 #else 640 #else
634 void CheckGLError() { } 641 void CheckGLError() { }
635 void FailGLError(GLenum /* error */) { } 642 void FailGLError(GLenum /* error */) { }
636 #endif 643 #endif
637 644
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 808
802 inline bool GLES2Implementation::GetTexParameterivHelper( 809 inline bool GLES2Implementation::GetTexParameterivHelper(
803 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 810 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
804 return false; 811 return false;
805 } 812 }
806 813
807 } // namespace gles2 814 } // namespace gles2
808 } // namespace gpu 815 } // namespace gpu
809 816
810 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 817 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698