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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 WGC3Dint level, | 624 WGC3Dint level, |
625 WGC3Dint xoffset, | 625 WGC3Dint xoffset, |
626 WGC3Dint yoffset, | 626 WGC3Dint yoffset, |
627 WGC3Dsizei width, | 627 WGC3Dsizei width, |
628 WGC3Dsizei height, | 628 WGC3Dsizei height, |
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 |
| 635 virtual void drawBuffersEXT( |
| 636 WGC3Dsizei n, |
| 637 const WGC3Denum* bufs); |
| 638 |
634 protected: | 639 protected: |
635 virtual GrGLInterface* onCreateGrGLInterface(); | 640 virtual GrGLInterface* onCreateGrGLInterface(); |
636 | 641 |
637 private: | 642 private: |
638 // These are the same error codes as used by EGL. | 643 // These are the same error codes as used by EGL. |
639 enum Error { | 644 enum Error { |
640 SUCCESS = 0x3000, | 645 SUCCESS = 0x3000, |
641 BAD_ATTRIBUTE = 0x3004, | 646 BAD_ATTRIBUTE = 0x3004, |
642 CONTEXT_LOST = 0x300E | 647 CONTEXT_LOST = 0x300E |
643 }; | 648 }; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 gpu::gles2::GLES2Interface* trace_gl_; | 770 gpu::gles2::GLES2Interface* trace_gl_; |
766 Error last_error_; | 771 Error last_error_; |
767 int frame_number_; | 772 int frame_number_; |
768 bool bind_generates_resources_; | 773 bool bind_generates_resources_; |
769 bool use_echo_for_swap_ack_; | 774 bool use_echo_for_swap_ack_; |
770 }; | 775 }; |
771 | 776 |
772 } // namespace content | 777 } // namespace content |
773 | 778 |
774 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 779 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |