| 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 <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 void DeleteValuebuffersCHROMIUMHelper(GLsizei n, const GLuint* valuebuffers); | 503 void DeleteValuebuffersCHROMIUMHelper(GLsizei n, const GLuint* valuebuffers); |
| 504 void DeleteSamplersHelper(GLsizei n, const GLuint* samplers); | 504 void DeleteSamplersHelper(GLsizei n, const GLuint* samplers); |
| 505 void DeleteTransformFeedbacksHelper( | 505 void DeleteTransformFeedbacksHelper( |
| 506 GLsizei n, const GLuint* transformfeedbacks); | 506 GLsizei n, const GLuint* transformfeedbacks); |
| 507 void DeleteSyncHelper(GLsync sync); | 507 void DeleteSyncHelper(GLsync sync); |
| 508 | 508 |
| 509 void DeleteBuffersStub(GLsizei n, const GLuint* buffers); | 509 void DeleteBuffersStub(GLsizei n, const GLuint* buffers); |
| 510 void DeleteFramebuffersStub(GLsizei n, const GLuint* framebuffers); | 510 void DeleteFramebuffersStub(GLsizei n, const GLuint* framebuffers); |
| 511 void DeleteRenderbuffersStub(GLsizei n, const GLuint* renderbuffers); | 511 void DeleteRenderbuffersStub(GLsizei n, const GLuint* renderbuffers); |
| 512 void DeleteTexturesStub(GLsizei n, const GLuint* textures); | 512 void DeleteTexturesStub(GLsizei n, const GLuint* textures); |
| 513 void DeletePathsCHROMIUMStub(GLuint first_client_id, GLsizei range); |
| 513 void DeleteProgramStub(GLsizei n, const GLuint* programs); | 514 void DeleteProgramStub(GLsizei n, const GLuint* programs); |
| 514 void DeleteShaderStub(GLsizei n, const GLuint* shaders); | 515 void DeleteShaderStub(GLsizei n, const GLuint* shaders); |
| 515 void DeleteVertexArraysOESStub(GLsizei n, const GLuint* arrays); | 516 void DeleteVertexArraysOESStub(GLsizei n, const GLuint* arrays); |
| 516 void DeleteValuebuffersCHROMIUMStub(GLsizei n, const GLuint* valuebuffers); | 517 void DeleteValuebuffersCHROMIUMStub(GLsizei n, const GLuint* valuebuffers); |
| 517 void DeleteSamplersStub(GLsizei n, const GLuint* samplers); | 518 void DeleteSamplersStub(GLsizei n, const GLuint* samplers); |
| 518 void DeleteTransformFeedbacksStub( | 519 void DeleteTransformFeedbacksStub( |
| 519 GLsizei n, const GLuint* transformfeedbacks); | 520 GLsizei n, const GLuint* transformfeedbacks); |
| 520 void DeleteSyncStub(GLsizei n, const GLuint* syncs); | 521 void DeleteSyncStub(GLsizei n, const GLuint* syncs); |
| 521 | 522 |
| 522 void BufferDataHelper( | 523 void BufferDataHelper( |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 bool GetTexParameterfvHelper(GLenum target, GLenum pname, GLfloat* params); | 587 bool GetTexParameterfvHelper(GLenum target, GLenum pname, GLfloat* params); |
| 587 bool GetTexParameterivHelper(GLenum target, GLenum pname, GLint* params); | 588 bool GetTexParameterivHelper(GLenum target, GLenum pname, GLint* params); |
| 588 const GLubyte* GetStringHelper(GLenum name); | 589 const GLubyte* GetStringHelper(GLenum name); |
| 589 | 590 |
| 590 bool IsExtensionAvailable(const char* ext); | 591 bool IsExtensionAvailable(const char* ext); |
| 591 | 592 |
| 592 // Caches certain capabilties state. Return true if cached. | 593 // Caches certain capabilties state. Return true if cached. |
| 593 bool SetCapabilityState(GLenum cap, bool enabled); | 594 bool SetCapabilityState(GLenum cap, bool enabled); |
| 594 | 595 |
| 595 IdHandlerInterface* GetIdHandler(int id_namespace) const; | 596 IdHandlerInterface* GetIdHandler(int id_namespace) const; |
| 597 RangeIdHandlerInterface* GetRangeIdHandler(int id_namespace) const; |
| 596 // IdAllocators for objects that can't be shared among contexts. | 598 // IdAllocators for objects that can't be shared among contexts. |
| 597 // For now, used only for Queries. TODO(hj.r.chung) Should be added for | 599 // For now, used only for Queries. TODO(hj.r.chung) Should be added for |
| 598 // Framebuffer and Vertex array objects. | 600 // Framebuffer and Vertex array objects. |
| 599 IdAllocator* GetIdAllocator(int id_namespace) const; | 601 IdAllocator* GetIdAllocator(int id_namespace) const; |
| 600 | 602 |
| 601 void FinishHelper(); | 603 void FinishHelper(); |
| 602 void FlushHelper(); | 604 void FlushHelper(); |
| 603 | 605 |
| 604 void RunIfContextNotLost(const base::Closure& callback); | 606 void RunIfContextNotLost(const base::Closure& callback); |
| 605 | 607 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 | 853 |
| 852 inline bool GLES2Implementation::GetTexParameterivHelper( | 854 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 853 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 855 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 854 return false; | 856 return false; |
| 855 } | 857 } |
| 856 | 858 |
| 857 } // namespace gles2 | 859 } // namespace gles2 |
| 858 } // namespace gpu | 860 } // namespace gpu |
| 859 | 861 |
| 860 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 862 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |