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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 void DeleteQueriesEXTHelper(GLsizei n, const GLuint* queries); | 530 void DeleteQueriesEXTHelper(GLsizei n, const GLuint* queries); |
531 void DeleteVertexArraysOESHelper(GLsizei n, const GLuint* arrays); | 531 void DeleteVertexArraysOESHelper(GLsizei n, const GLuint* arrays); |
532 | 532 |
533 void DeleteBuffersStub(GLsizei n, const GLuint* buffers); | 533 void DeleteBuffersStub(GLsizei n, const GLuint* buffers); |
534 void DeleteFramebuffersStub(GLsizei n, const GLuint* framebuffers); | 534 void DeleteFramebuffersStub(GLsizei n, const GLuint* framebuffers); |
535 void DeleteRenderbuffersStub(GLsizei n, const GLuint* renderbuffers); | 535 void DeleteRenderbuffersStub(GLsizei n, const GLuint* renderbuffers); |
536 void DeleteTexturesStub(GLsizei n, const GLuint* textures); | 536 void DeleteTexturesStub(GLsizei n, const GLuint* textures); |
537 void DeleteProgramStub(GLsizei n, const GLuint* programs); | 537 void DeleteProgramStub(GLsizei n, const GLuint* programs); |
538 void DeleteShaderStub(GLsizei n, const GLuint* shaders); | 538 void DeleteShaderStub(GLsizei n, const GLuint* shaders); |
539 void DeleteVertexArraysOESStub(GLsizei n, const GLuint* arrays); | 539 void DeleteVertexArraysOESStub(GLsizei n, const GLuint* arrays); |
| 540 void DeletePathsCHROMIUMStub(GLuint first_client_id, GLsizei range); |
540 | 541 |
541 void BufferDataHelper( | 542 void BufferDataHelper( |
542 GLenum target, GLsizeiptr size, const void* data, GLenum usage); | 543 GLenum target, GLsizeiptr size, const void* data, GLenum usage); |
543 void BufferSubDataHelper( | 544 void BufferSubDataHelper( |
544 GLenum target, GLintptr offset, GLsizeiptr size, const void* data); | 545 GLenum target, GLintptr offset, GLsizeiptr size, const void* data); |
545 void BufferSubDataHelperImpl( | 546 void BufferSubDataHelperImpl( |
546 GLenum target, GLintptr offset, GLsizeiptr size, const void* data, | 547 GLenum target, GLintptr offset, GLsizeiptr size, const void* data, |
547 ScopedTransferBufferPtr* buffer); | 548 ScopedTransferBufferPtr* buffer); |
548 | 549 |
549 GLuint CreateImageCHROMIUMHelper(GLsizei width, | 550 GLuint CreateImageCHROMIUMHelper(GLsizei width, |
(...skipping 38 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 | 606 |
605 void RunIfContextNotLost(const base::Closure& callback); | 607 void RunIfContextNotLost(const base::Closure& callback); |
606 | 608 |
607 void OnSwapBuffersComplete(); | 609 void OnSwapBuffersComplete(); |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 | 824 |
823 inline bool GLES2Implementation::GetTexParameterivHelper( | 825 inline bool GLES2Implementation::GetTexParameterivHelper( |
824 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 826 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
825 return false; | 827 return false; |
826 } | 828 } |
827 | 829 |
828 } // namespace gles2 | 830 } // namespace gles2 |
829 } // namespace gpu | 831 } // namespace gpu |
830 | 832 |
831 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 833 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |