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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 425 |
426 // Returns true if id is reserved. | 426 // Returns true if id is reserved. |
427 bool IsBufferReservedId(GLuint id); | 427 bool IsBufferReservedId(GLuint id); |
428 bool IsFramebufferReservedId(GLuint id) { return false; } | 428 bool IsFramebufferReservedId(GLuint id) { return false; } |
429 bool IsRenderbufferReservedId(GLuint id) { return false; } | 429 bool IsRenderbufferReservedId(GLuint id) { return false; } |
430 bool IsTextureReservedId(GLuint id) { return false; } | 430 bool IsTextureReservedId(GLuint id) { return false; } |
431 bool IsVertexArrayReservedId(GLuint id) { return false; } | 431 bool IsVertexArrayReservedId(GLuint id) { return false; } |
432 bool IsProgramReservedId(GLuint id) { return false; } | 432 bool IsProgramReservedId(GLuint id) { return false; } |
433 bool IsValuebufferReservedId(GLuint id) { return false; } | 433 bool IsValuebufferReservedId(GLuint id) { return false; } |
434 | 434 |
435 bool BindBufferHelper(GLenum target, GLuint texture); | 435 void BindBufferHelper(GLenum target, GLuint buffer); |
436 bool BindFramebufferHelper(GLenum target, GLuint texture); | 436 void BindFramebufferHelper(GLenum target, GLuint framebuffer); |
437 bool BindRenderbufferHelper(GLenum target, GLuint texture); | 437 void BindRenderbufferHelper(GLenum target, GLuint renderbuffer); |
438 bool BindTextureHelper(GLenum target, GLuint texture); | 438 void BindTextureHelper(GLenum target, GLuint texture); |
439 bool BindVertexArrayOESHelper(GLuint array); | 439 void BindVertexArrayOESHelper(GLuint array); |
440 bool BindValuebufferCHROMIUMHelper(GLenum target, GLuint valuebuffer); | 440 void BindValuebufferCHROMIUMHelper(GLenum target, GLuint valuebuffer); |
441 bool UseProgramHelper(GLuint program); | 441 void UseProgramHelper(GLuint program); |
| 442 |
| 443 void BindBufferStub(GLenum target, GLuint buffer); |
| 444 void BindFramebufferStub(GLenum target, GLuint framebuffer); |
| 445 void BindRenderbufferStub(GLenum target, GLuint renderbuffer); |
| 446 void BindTextureStub(GLenum target, GLuint texture); |
| 447 void BindValuebufferCHROMIUMStub(GLenum target, GLuint valuebuffer); |
442 | 448 |
443 void GenBuffersHelper(GLsizei n, const GLuint* buffers); | 449 void GenBuffersHelper(GLsizei n, const GLuint* buffers); |
444 void GenFramebuffersHelper(GLsizei n, const GLuint* framebuffers); | 450 void GenFramebuffersHelper(GLsizei n, const GLuint* framebuffers); |
445 void GenRenderbuffersHelper(GLsizei n, const GLuint* renderbuffers); | 451 void GenRenderbuffersHelper(GLsizei n, const GLuint* renderbuffers); |
446 void GenTexturesHelper(GLsizei n, const GLuint* textures); | 452 void GenTexturesHelper(GLsizei n, const GLuint* textures); |
447 void GenVertexArraysOESHelper(GLsizei n, const GLuint* arrays); | 453 void GenVertexArraysOESHelper(GLsizei n, const GLuint* arrays); |
448 void GenQueriesEXTHelper(GLsizei n, const GLuint* queries); | 454 void GenQueriesEXTHelper(GLsizei n, const GLuint* queries); |
449 void GenValuebuffersCHROMIUMHelper(GLsizei n, const GLuint* valuebuffers); | 455 void GenValuebuffersCHROMIUMHelper(GLsizei n, const GLuint* valuebuffers); |
450 | 456 |
451 void DeleteBuffersHelper(GLsizei n, const GLuint* buffers); | 457 void DeleteBuffersHelper(GLsizei n, const GLuint* buffers); |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 | 755 |
750 inline bool GLES2Implementation::GetTexParameterivHelper( | 756 inline bool GLES2Implementation::GetTexParameterivHelper( |
751 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 757 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
752 return false; | 758 return false; |
753 } | 759 } |
754 | 760 |
755 } // namespace gles2 | 761 } // namespace gles2 |
756 } // namespace gpu | 762 } // namespace gpu |
757 | 763 |
758 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 764 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |