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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 WGC3Denum format, | 629 WGC3Denum format, |
630 WGC3Denum type, | 630 WGC3Denum type, |
631 const void* pixels); | 631 const void* pixels); |
632 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum target); | 632 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum target); |
633 | 633 |
634 // GL_EXT_draw_buffers | 634 // GL_EXT_draw_buffers |
635 virtual void drawBuffersEXT( | 635 virtual void drawBuffersEXT( |
636 WGC3Dsizei n, | 636 WGC3Dsizei n, |
637 const WGC3Denum* bufs); | 637 const WGC3Denum* bufs); |
638 | 638 |
| 639 virtual void encodeBackbufferCHROMIUM(); |
| 640 |
639 protected: | 641 protected: |
640 virtual GrGLInterface* onCreateGrGLInterface(); | 642 virtual GrGLInterface* onCreateGrGLInterface(); |
641 | 643 |
642 private: | 644 private: |
643 // These are the same error codes as used by EGL. | 645 // These are the same error codes as used by EGL. |
644 enum Error { | 646 enum Error { |
645 SUCCESS = 0x3000, | 647 SUCCESS = 0x3000, |
646 BAD_ATTRIBUTE = 0x3004, | 648 BAD_ATTRIBUTE = 0x3004, |
647 CONTEXT_LOST = 0x300E | 649 CONTEXT_LOST = 0x300E |
648 }; | 650 }; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 gpu::gles2::GLES2Interface* trace_gl_; | 772 gpu::gles2::GLES2Interface* trace_gl_; |
771 Error last_error_; | 773 Error last_error_; |
772 int frame_number_; | 774 int frame_number_; |
773 bool bind_generates_resources_; | 775 bool bind_generates_resources_; |
774 bool use_echo_for_swap_ack_; | 776 bool use_echo_for_swap_ack_; |
775 }; | 777 }; |
776 | 778 |
777 } // namespace content | 779 } // namespace content |
778 | 780 |
779 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 781 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |