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