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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 virtual void insertEventMarkerEXT(const WGC3Dchar* marker); | 585 virtual void insertEventMarkerEXT(const WGC3Dchar* marker); |
586 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker); | 586 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker); |
587 virtual void popGroupMarkerEXT(); | 587 virtual void popGroupMarkerEXT(); |
588 | 588 |
589 // GL_OES_vertex_array_object | 589 // GL_OES_vertex_array_object |
590 virtual WebGLId createVertexArrayOES(); | 590 virtual WebGLId createVertexArrayOES(); |
591 virtual void deleteVertexArrayOES(WebGLId array); | 591 virtual void deleteVertexArrayOES(WebGLId array); |
592 virtual WGC3Dboolean isVertexArrayOES(WebGLId array); | 592 virtual WGC3Dboolean isVertexArrayOES(WebGLId array); |
593 virtual void bindVertexArrayOES(WebGLId array); | 593 virtual void bindVertexArrayOES(WebGLId array); |
594 | 594 |
| 595 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id); |
| 596 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id); |
| 597 |
595 protected: | 598 protected: |
596 virtual GrGLInterface* onCreateGrGLInterface(); | 599 virtual GrGLInterface* onCreateGrGLInterface(); |
597 | 600 |
598 private: | 601 private: |
599 // These are the same error codes as used by EGL. | 602 // These are the same error codes as used by EGL. |
600 enum Error { | 603 enum Error { |
601 SUCCESS = 0x3000, | 604 SUCCESS = 0x3000, |
602 BAD_ATTRIBUTE = 0x3004, | 605 BAD_ATTRIBUTE = 0x3004, |
603 CONTEXT_LOST = 0x300E | 606 CONTEXT_LOST = 0x300E |
604 }; | 607 }; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 gpu::gles2::GLES2CmdHelper* gles2_helper_; | 723 gpu::gles2::GLES2CmdHelper* gles2_helper_; |
721 gpu::TransferBuffer* transfer_buffer_; | 724 gpu::TransferBuffer* transfer_buffer_; |
722 gpu::gles2::GLES2Implementation* gl_; | 725 gpu::gles2::GLES2Implementation* gl_; |
723 Error last_error_; | 726 Error last_error_; |
724 int frame_number_; | 727 int frame_number_; |
725 bool bind_generates_resources_; | 728 bool bind_generates_resources_; |
726 bool use_echo_for_swap_ack_; | 729 bool use_echo_for_swap_ack_; |
727 }; | 730 }; |
728 | 731 |
729 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 732 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |