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