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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 virtual void getQueryivEXT( | 553 virtual void getQueryivEXT( |
554 WGC3Denum target, WGC3Denum pname, WGC3Dint* params); | 554 WGC3Denum target, WGC3Denum pname, WGC3Dint* params); |
555 virtual void getQueryObjectuivEXT( | 555 virtual void getQueryObjectuivEXT( |
556 WebGLId query, WGC3Denum pname, WGC3Duint* params); | 556 WebGLId query, WGC3Denum pname, WGC3Duint* params); |
557 | 557 |
558 virtual void copyTextureCHROMIUM(WGC3Denum target, WebGLId source_id, | 558 virtual void copyTextureCHROMIUM(WGC3Denum target, WebGLId source_id, |
559 WebGLId dest_id, WGC3Dint level, | 559 WebGLId dest_id, WGC3Dint level, |
560 WGC3Denum internal_format); | 560 WGC3Denum internal_format); |
561 | 561 |
562 protected: | 562 protected: |
563 #if WEBKIT_USING_SKIA | |
564 virtual GrGLInterface* onCreateGrGLInterface(); | 563 virtual GrGLInterface* onCreateGrGLInterface(); |
565 #endif | |
566 | 564 |
567 private: | 565 private: |
568 // These are the same error codes as used by EGL. | 566 // These are the same error codes as used by EGL. |
569 enum Error { | 567 enum Error { |
570 SUCCESS = 0x3000, | 568 SUCCESS = 0x3000, |
571 BAD_ATTRIBUTE = 0x3004, | 569 BAD_ATTRIBUTE = 0x3004, |
572 CONTEXT_LOST = 0x300E | 570 CONTEXT_LOST = 0x300E |
573 }; | 571 }; |
574 // WebGraphicsContext3DCommandBufferImpl configuration attributes. Those in | 572 // WebGraphicsContext3DCommandBufferImpl configuration attributes. Those in |
575 // the 16-bit range are the same as used by EGL. Those outside the 16-bit | 573 // the 16-bit range are the same as used by EGL. Those outside the 16-bit |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 CommandBufferProxy* command_buffer_; | 686 CommandBufferProxy* command_buffer_; |
689 gpu::gles2::GLES2CmdHelper* gles2_helper_; | 687 gpu::gles2::GLES2CmdHelper* gles2_helper_; |
690 gpu::TransferBuffer* transfer_buffer_; | 688 gpu::TransferBuffer* transfer_buffer_; |
691 gpu::gles2::GLES2Implementation* gl_; | 689 gpu::gles2::GLES2Implementation* gl_; |
692 Error last_error_; | 690 Error last_error_; |
693 int frame_number_; | 691 int frame_number_; |
694 bool bind_generates_resources_; | 692 bool bind_generates_resources_; |
695 }; | 693 }; |
696 | 694 |
697 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 695 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |