| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 void BindSamplerHelper(GLuint unit, GLuint sampler); | 481 void BindSamplerHelper(GLuint unit, GLuint sampler); |
| 482 void BindTextureHelper(GLenum target, GLuint texture); | 482 void BindTextureHelper(GLenum target, GLuint texture); |
| 483 void BindTransformFeedbackHelper(GLenum target, GLuint transformfeedback); | 483 void BindTransformFeedbackHelper(GLenum target, GLuint transformfeedback); |
| 484 void BindVertexArrayOESHelper(GLuint array); | 484 void BindVertexArrayOESHelper(GLuint array); |
| 485 void UseProgramHelper(GLuint program); | 485 void UseProgramHelper(GLuint program); |
| 486 | 486 |
| 487 void BindBufferStub(GLenum target, GLuint buffer); | 487 void BindBufferStub(GLenum target, GLuint buffer); |
| 488 void BindBufferBaseStub(GLenum target, GLuint index, GLuint buffer); | 488 void BindBufferBaseStub(GLenum target, GLuint index, GLuint buffer); |
| 489 void BindBufferRangeStub(GLenum target, GLuint index, GLuint buffer, | 489 void BindBufferRangeStub(GLenum target, GLuint index, GLuint buffer, |
| 490 GLintptr offset, GLsizeiptr size); | 490 GLintptr offset, GLsizeiptr size); |
| 491 void BindFramebufferStub(GLenum target, GLuint framebuffer); | |
| 492 void BindRenderbufferStub(GLenum target, GLuint renderbuffer); | 491 void BindRenderbufferStub(GLenum target, GLuint renderbuffer); |
| 493 void BindTextureStub(GLenum target, GLuint texture); | 492 void BindTextureStub(GLenum target, GLuint texture); |
| 494 | 493 |
| 495 void GenBuffersHelper(GLsizei n, const GLuint* buffers); | 494 void GenBuffersHelper(GLsizei n, const GLuint* buffers); |
| 496 void GenFramebuffersHelper(GLsizei n, const GLuint* framebuffers); | 495 void GenFramebuffersHelper(GLsizei n, const GLuint* framebuffers); |
| 497 void GenRenderbuffersHelper(GLsizei n, const GLuint* renderbuffers); | 496 void GenRenderbuffersHelper(GLsizei n, const GLuint* renderbuffers); |
| 498 void GenTexturesHelper(GLsizei n, const GLuint* textures); | 497 void GenTexturesHelper(GLsizei n, const GLuint* textures); |
| 499 void GenVertexArraysOESHelper(GLsizei n, const GLuint* arrays); | 498 void GenVertexArraysOESHelper(GLsizei n, const GLuint* arrays); |
| 500 void GenQueriesEXTHelper(GLsizei n, const GLuint* queries); | 499 void GenQueriesEXTHelper(GLsizei n, const GLuint* queries); |
| 501 void GenSamplersHelper(GLsizei n, const GLuint* samplers); | 500 void GenSamplersHelper(GLsizei n, const GLuint* samplers); |
| 502 void GenTransformFeedbacksHelper(GLsizei n, const GLuint* transformfeedbacks); | 501 void GenTransformFeedbacksHelper(GLsizei n, const GLuint* transformfeedbacks); |
| 503 | 502 |
| 504 void DeleteBuffersHelper(GLsizei n, const GLuint* buffers); | 503 void DeleteBuffersHelper(GLsizei n, const GLuint* buffers); |
| 505 void DeleteFramebuffersHelper(GLsizei n, const GLuint* framebuffers); | 504 void DeleteFramebuffersHelper(GLsizei n, const GLuint* framebuffers); |
| 506 void DeleteRenderbuffersHelper(GLsizei n, const GLuint* renderbuffers); | 505 void DeleteRenderbuffersHelper(GLsizei n, const GLuint* renderbuffers); |
| 507 void DeleteTexturesHelper(GLsizei n, const GLuint* textures); | 506 void DeleteTexturesHelper(GLsizei n, const GLuint* textures); |
| 508 bool DeleteProgramHelper(GLuint program); | 507 bool DeleteProgramHelper(GLuint program); |
| 509 bool DeleteShaderHelper(GLuint shader); | 508 bool DeleteShaderHelper(GLuint shader); |
| 510 void DeleteQueriesEXTHelper(GLsizei n, const GLuint* queries); | 509 void DeleteQueriesEXTHelper(GLsizei n, const GLuint* queries); |
| 511 void DeleteVertexArraysOESHelper(GLsizei n, const GLuint* arrays); | 510 void DeleteVertexArraysOESHelper(GLsizei n, const GLuint* arrays); |
| 512 void DeleteSamplersHelper(GLsizei n, const GLuint* samplers); | 511 void DeleteSamplersHelper(GLsizei n, const GLuint* samplers); |
| 513 void DeleteTransformFeedbacksHelper( | 512 void DeleteTransformFeedbacksHelper( |
| 514 GLsizei n, const GLuint* transformfeedbacks); | 513 GLsizei n, const GLuint* transformfeedbacks); |
| 515 void DeleteSyncHelper(GLsync sync); | 514 void DeleteSyncHelper(GLsync sync); |
| 516 | 515 |
| 517 void DeleteBuffersStub(GLsizei n, const GLuint* buffers); | 516 void DeleteBuffersStub(GLsizei n, const GLuint* buffers); |
| 518 void DeleteFramebuffersStub(GLsizei n, const GLuint* framebuffers); | |
| 519 void DeleteRenderbuffersStub(GLsizei n, const GLuint* renderbuffers); | 517 void DeleteRenderbuffersStub(GLsizei n, const GLuint* renderbuffers); |
| 520 void DeleteTexturesStub(GLsizei n, const GLuint* textures); | 518 void DeleteTexturesStub(GLsizei n, const GLuint* textures); |
| 521 void DeletePathsCHROMIUMStub(GLuint first_client_id, GLsizei range); | 519 void DeletePathsCHROMIUMStub(GLuint first_client_id, GLsizei range); |
| 522 void DeleteProgramStub(GLsizei n, const GLuint* programs); | 520 void DeleteProgramStub(GLsizei n, const GLuint* programs); |
| 523 void DeleteShaderStub(GLsizei n, const GLuint* shaders); | 521 void DeleteShaderStub(GLsizei n, const GLuint* shaders); |
| 524 void DeleteVertexArraysOESStub(GLsizei n, const GLuint* arrays); | |
| 525 void DeleteSamplersStub(GLsizei n, const GLuint* samplers); | 522 void DeleteSamplersStub(GLsizei n, const GLuint* samplers); |
| 526 void DeleteTransformFeedbacksStub( | 523 void DeleteTransformFeedbacksStub( |
| 527 GLsizei n, const GLuint* transformfeedbacks); | 524 GLsizei n, const GLuint* transformfeedbacks); |
| 528 void DeleteSyncStub(GLsizei n, const GLuint* syncs); | 525 void DeleteSyncStub(GLsizei n, const GLuint* syncs); |
| 529 | 526 |
| 530 void BufferDataHelper( | 527 void BufferDataHelper( |
| 531 GLenum target, GLsizeiptr size, const void* data, GLenum usage); | 528 GLenum target, GLsizeiptr size, const void* data, GLenum usage); |
| 532 void BufferSubDataHelper( | 529 void BufferSubDataHelper( |
| 533 GLenum target, GLintptr offset, GLsizeiptr size, const void* data); | 530 GLenum target, GLintptr offset, GLsizeiptr size, const void* data); |
| 534 void BufferSubDataHelperImpl( | 531 void BufferSubDataHelperImpl( |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 | 799 |
| 803 typedef std::map<const void*, MappedTexture> MappedTextureMap; | 800 typedef std::map<const void*, MappedTexture> MappedTextureMap; |
| 804 MappedTextureMap mapped_textures_; | 801 MappedTextureMap mapped_textures_; |
| 805 | 802 |
| 806 std::unique_ptr<MappedMemoryManager> mapped_memory_; | 803 std::unique_ptr<MappedMemoryManager> mapped_memory_; |
| 807 | 804 |
| 808 scoped_refptr<ShareGroup> share_group_; | 805 scoped_refptr<ShareGroup> share_group_; |
| 809 ShareGroupContextData share_group_context_data_; | 806 ShareGroupContextData share_group_context_data_; |
| 810 | 807 |
| 811 std::unique_ptr<QueryTracker> query_tracker_; | 808 std::unique_ptr<QueryTracker> query_tracker_; |
| 812 std::unique_ptr<IdAllocator> query_id_allocator_; | 809 std::unique_ptr<IdAllocator> id_allocators_[id_namespaces::kNumIdNamespaces]; |
| 813 | 810 |
| 814 std::unique_ptr<BufferTracker> buffer_tracker_; | 811 std::unique_ptr<BufferTracker> buffer_tracker_; |
| 815 | 812 |
| 816 base::Callback<void(const char*, int32_t)> error_message_callback_; | 813 base::Callback<void(const char*, int32_t)> error_message_callback_; |
| 817 base::Closure lost_context_callback_; | 814 base::Closure lost_context_callback_; |
| 818 bool lost_context_callback_run_ = false; | 815 bool lost_context_callback_run_ = false; |
| 819 | 816 |
| 820 int current_trace_stack_; | 817 int current_trace_stack_; |
| 821 | 818 |
| 822 GpuControl* const gpu_control_; | 819 GpuControl* const gpu_control_; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 | 874 |
| 878 inline bool GLES2Implementation::GetTexParameterivHelper( | 875 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 879 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 876 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 880 return false; | 877 return false; |
| 881 } | 878 } |
| 882 | 879 |
| 883 } // namespace gles2 | 880 } // namespace gles2 |
| 884 } // namespace gpu | 881 } // namespace gpu |
| 885 | 882 |
| 886 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 883 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |