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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 virtual void asyncTexSubImage2DCHROMIUM( | 622 virtual void asyncTexSubImage2DCHROMIUM( |
623 WGC3Denum target, | 623 WGC3Denum target, |
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 | 633 |
633 protected: | 634 protected: |
634 virtual GrGLInterface* onCreateGrGLInterface(); | 635 virtual GrGLInterface* onCreateGrGLInterface(); |
635 | 636 |
636 private: | 637 private: |
637 // These are the same error codes as used by EGL. | 638 // These are the same error codes as used by EGL. |
638 enum Error { | 639 enum Error { |
639 SUCCESS = 0x3000, | 640 SUCCESS = 0x3000, |
640 BAD_ATTRIBUTE = 0x3004, | 641 BAD_ATTRIBUTE = 0x3004, |
641 CONTEXT_LOST = 0x300E | 642 CONTEXT_LOST = 0x300E |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 gpu::gles2::GLES2Interface* trace_gl_; | 765 gpu::gles2::GLES2Interface* trace_gl_; |
765 Error last_error_; | 766 Error last_error_; |
766 int frame_number_; | 767 int frame_number_; |
767 bool bind_generates_resources_; | 768 bool bind_generates_resources_; |
768 bool use_echo_for_swap_ack_; | 769 bool use_echo_for_swap_ack_; |
769 }; | 770 }; |
770 | 771 |
771 } // namespace content | 772 } // namespace content |
772 | 773 |
773 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 774 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |