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