| 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 "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/TraceWrapperMember.h" | 9 #include "bindings/core/v8/TraceWrapperMember.h" |
| 10 #include "modules/webgl/WebGLExtension.h" | 10 #include "modules/webgl/WebGLExtension.h" |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 DECLARE_VIRTUAL_TRACE(); | 748 DECLARE_VIRTUAL_TRACE(); |
| 749 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 749 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 750 | 750 |
| 751 protected: | 751 protected: |
| 752 friend class V8WebGL2RenderingContext; | 752 friend class V8WebGL2RenderingContext; |
| 753 | 753 |
| 754 WebGL2RenderingContextBase( | 754 WebGL2RenderingContextBase( |
| 755 HTMLCanvasElement*, | 755 HTMLCanvasElement*, |
| 756 std::unique_ptr<WebGraphicsContext3DProvider>, | 756 std::unique_ptr<WebGraphicsContext3DProvider>, |
| 757 const CanvasContextCreationAttributes& requestedAttributes); | 757 const CanvasContextCreationAttributes& requestedAttributes); |
| 758 WebGL2RenderingContextBase( |
| 759 OffscreenCanvas*, |
| 760 std::unique_ptr<WebGraphicsContext3DProvider>, |
| 761 const CanvasContextCreationAttributes& requestedAttributes); |
| 758 | 762 |
| 759 // DrawingBuffer::Client implementation. | 763 // DrawingBuffer::Client implementation. |
| 760 void DrawingBufferClientRestorePixelUnpackBufferBinding() override; | 764 void DrawingBufferClientRestorePixelUnpackBufferBinding() override; |
| 761 | 765 |
| 762 // Helper function to validate target and the attachment combination for | 766 // Helper function to validate target and the attachment combination for |
| 763 // getFramebufferAttachmentParameters. Generate GL error and return false if | 767 // getFramebufferAttachmentParameters. Generate GL error and return false if |
| 764 // parameters are illegal. | 768 // parameters are illegal. |
| 765 bool validateGetFramebufferAttachmentParameterFunc(const char* functionName, | 769 bool validateGetFramebufferAttachmentParameterFunc(const char* functionName, |
| 766 GLenum target, | 770 GLenum target, |
| 767 GLenum attachment); | 771 GLenum attachment); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 context, | 924 context, |
| 921 context->is3d() && | 925 context->is3d() && |
| 922 WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 926 WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 923 context.is3d() && | 927 context.is3d() && |
| 924 WebGLRenderingContextBase::getWebGLVersion(&context) >= | 928 WebGLRenderingContextBase::getWebGLVersion(&context) >= |
| 925 2); | 929 2); |
| 926 | 930 |
| 927 } // namespace blink | 931 } // namespace blink |
| 928 | 932 |
| 929 #endif | 933 #endif |
| OLD | NEW |