| 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 const WGC3Dchar* uniform); | 575 const WGC3Dchar* uniform); |
| 576 | 576 |
| 577 virtual void shallowFlushCHROMIUM(); | 577 virtual void shallowFlushCHROMIUM(); |
| 578 | 578 |
| 579 virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox); | 579 virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox); |
| 580 virtual void produceTextureCHROMIUM(WGC3Denum target, | 580 virtual void produceTextureCHROMIUM(WGC3Denum target, |
| 581 const WGC3Dbyte* mailbox); | 581 const WGC3Dbyte* mailbox); |
| 582 virtual void consumeTextureCHROMIUM(WGC3Denum target, | 582 virtual void consumeTextureCHROMIUM(WGC3Denum target, |
| 583 const WGC3Dbyte* mailbox); | 583 const WGC3Dbyte* mailbox); |
| 584 | 584 |
| 585 virtual void insertEventMarkerEXT(const WGC3Dchar* marker); |
| 586 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker); |
| 587 virtual void popGroupMarkerEXT(); |
| 588 |
| 585 protected: | 589 protected: |
| 586 virtual GrGLInterface* onCreateGrGLInterface(); | 590 virtual GrGLInterface* onCreateGrGLInterface(); |
| 587 | 591 |
| 588 private: | 592 private: |
| 589 // These are the same error codes as used by EGL. | 593 // These are the same error codes as used by EGL. |
| 590 enum Error { | 594 enum Error { |
| 591 SUCCESS = 0x3000, | 595 SUCCESS = 0x3000, |
| 592 BAD_ATTRIBUTE = 0x3004, | 596 BAD_ATTRIBUTE = 0x3004, |
| 593 CONTEXT_LOST = 0x300E | 597 CONTEXT_LOST = 0x300E |
| 594 }; | 598 }; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 gpu::gles2::GLES2CmdHelper* gles2_helper_; | 714 gpu::gles2::GLES2CmdHelper* gles2_helper_; |
| 711 gpu::TransferBuffer* transfer_buffer_; | 715 gpu::TransferBuffer* transfer_buffer_; |
| 712 gpu::gles2::GLES2Implementation* gl_; | 716 gpu::gles2::GLES2Implementation* gl_; |
| 713 Error last_error_; | 717 Error last_error_; |
| 714 int frame_number_; | 718 int frame_number_; |
| 715 bool bind_generates_resources_; | 719 bool bind_generates_resources_; |
| 716 bool use_echo_for_swap_ack_; | 720 bool use_echo_for_swap_ack_; |
| 717 }; | 721 }; |
| 718 | 722 |
| 719 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 723 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |