| 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 CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 virtual void deleteVertexArrayOES(WebGLId array); | 596 virtual void deleteVertexArrayOES(WebGLId array); |
| 597 virtual WGC3Dboolean isVertexArrayOES(WebGLId array); | 597 virtual WGC3Dboolean isVertexArrayOES(WebGLId array); |
| 598 virtual void bindVertexArrayOES(WebGLId array); | 598 virtual void bindVertexArrayOES(WebGLId array); |
| 599 | 599 |
| 600 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id); | 600 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id); |
| 601 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id); | 601 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id); |
| 602 | 602 |
| 603 virtual WebGLId createStreamTextureCHROMIUM(WebGLId texture); | 603 virtual WebGLId createStreamTextureCHROMIUM(WebGLId texture); |
| 604 virtual void destroyStreamTextureCHROMIUM(WebGLId texture); | 604 virtual void destroyStreamTextureCHROMIUM(WebGLId texture); |
| 605 | 605 |
| 606 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access); |
| 607 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target); |
| 608 |
| 606 protected: | 609 protected: |
| 607 virtual GrGLInterface* onCreateGrGLInterface(); | 610 virtual GrGLInterface* onCreateGrGLInterface(); |
| 608 | 611 |
| 609 private: | 612 private: |
| 610 // These are the same error codes as used by EGL. | 613 // These are the same error codes as used by EGL. |
| 611 enum Error { | 614 enum Error { |
| 612 SUCCESS = 0x3000, | 615 SUCCESS = 0x3000, |
| 613 BAD_ATTRIBUTE = 0x3004, | 616 BAD_ATTRIBUTE = 0x3004, |
| 614 CONTEXT_LOST = 0x300E | 617 CONTEXT_LOST = 0x300E |
| 615 }; | 618 }; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 gpu::gles2::GLES2Implementation* gl_; | 738 gpu::gles2::GLES2Implementation* gl_; |
| 736 Error last_error_; | 739 Error last_error_; |
| 737 int frame_number_; | 740 int frame_number_; |
| 738 bool bind_generates_resources_; | 741 bool bind_generates_resources_; |
| 739 bool use_echo_for_swap_ack_; | 742 bool use_echo_for_swap_ack_; |
| 740 }; | 743 }; |
| 741 | 744 |
| 742 } // namespace content | 745 } // namespace content |
| 743 | 746 |
| 744 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 747 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |