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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 gpu::gles2::GLES2Implementation* gl_; | 740 gpu::gles2::GLES2Implementation* gl_; |
738 Error last_error_; | 741 Error last_error_; |
739 int frame_number_; | 742 int frame_number_; |
740 bool bind_generates_resources_; | 743 bool bind_generates_resources_; |
741 bool use_echo_for_swap_ack_; | 744 bool use_echo_for_swap_ack_; |
742 }; | 745 }; |
743 | 746 |
744 } // namespace content | 747 } // namespace content |
745 | 748 |
746 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 749 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |