OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 WebGL2RenderingContextBase_h | 5 #ifndef WebGL2RenderingContextBase_h |
6 #define WebGL2RenderingContextBase_h | 6 #define WebGL2RenderingContextBase_h |
7 | 7 |
8 #include "modules/webgl/WebGLExtension.h" | 8 #include "modules/webgl/WebGLExtension.h" |
9 #include "modules/webgl/WebGLRenderingContextBase.h" | 9 #include "modules/webgl/WebGLRenderingContextBase.h" |
10 #include <memory> | 10 #include <memory> |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 GLint y, | 711 GLint y, |
712 GLsizei width, | 712 GLsizei width, |
713 GLsizei height, | 713 GLsizei height, |
714 GLenum format, | 714 GLenum format, |
715 GLenum type, | 715 GLenum type, |
716 DOMArrayBufferView* pixels) override; | 716 DOMArrayBufferView* pixels) override; |
717 void restoreCurrentFramebuffer() override; | 717 void restoreCurrentFramebuffer() override; |
718 | 718 |
719 EAGERLY_FINALIZE(); | 719 EAGERLY_FINALIZE(); |
720 DECLARE_VIRTUAL_TRACE(); | 720 DECLARE_VIRTUAL_TRACE(); |
| 721 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
721 | 722 |
722 protected: | 723 protected: |
723 friend class V8WebGL2RenderingContext; | 724 friend class V8WebGL2RenderingContext; |
724 | 725 |
725 WebGL2RenderingContextBase( | 726 WebGL2RenderingContextBase( |
726 HTMLCanvasElement*, | 727 HTMLCanvasElement*, |
727 std::unique_ptr<WebGraphicsContext3DProvider>, | 728 std::unique_ptr<WebGraphicsContext3DProvider>, |
728 const CanvasContextCreationAttributes& requestedAttributes); | 729 const CanvasContextCreationAttributes& requestedAttributes); |
729 | 730 |
730 // Helper function to validate target and the attachment combination for | 731 // Helper function to validate target and the attachment combination for |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 context, | 867 context, |
867 context->is3d() && | 868 context->is3d() && |
868 WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 869 WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
869 context.is3d() && | 870 context.is3d() && |
870 WebGLRenderingContextBase::getWebGLVersion(&context) >= | 871 WebGLRenderingContextBase::getWebGLVersion(&context) >= |
871 2); | 872 2); |
872 | 873 |
873 } // namespace blink | 874 } // namespace blink |
874 | 875 |
875 #endif | 876 #endif |
OLD | NEW |