Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
index 739a23f6d51e9088cce1f3c2e4f8fee42a299ad5..97edeede8b64a30e1e198f4aa6070bb8a33a9d5a 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
@@ -247,6 +247,31 @@ WebGL2RenderingContextBase::WebGL2RenderingContextBase( |
WTF_ARRAY_LENGTH(kSupportedInternalFormatsStorage)); |
} |
+WebGL2RenderingContextBase::WebGL2RenderingContextBase( |
+ OffscreenCanvas* passedOffscreenCanvas, |
+ std::unique_ptr<WebGraphicsContext3DProvider> contextProvider, |
+ const CanvasContextCreationAttributes& requestedAttributes) |
+ : WebGLRenderingContextBase(passedOffscreenCanvas, |
+ std::move(contextProvider), |
+ requestedAttributes, |
+ 2), |
+ m_readFramebufferBinding(this, nullptr), |
+ m_transformFeedbackBinding(this, nullptr), |
+ m_boundCopyReadBuffer(this, nullptr), |
+ m_boundCopyWriteBuffer(this, nullptr), |
+ m_boundPixelPackBuffer(this, nullptr), |
+ m_boundPixelUnpackBuffer(this, nullptr), |
+ m_boundTransformFeedbackBuffer(this, nullptr), |
+ m_boundUniformBuffer(this, nullptr), |
+ m_currentBooleanOcclusionQuery(this, nullptr), |
+ m_currentTransformFeedbackPrimitivesWrittenQuery(this, nullptr), |
+ m_currentElapsedQuery(this, nullptr) { |
+ m_supportedInternalFormatsStorage.insert( |
+ kSupportedInternalFormatsStorage, |
+ kSupportedInternalFormatsStorage + |
+ WTF_ARRAY_LENGTH(kSupportedInternalFormatsStorage)); |
+} |
+ |
WebGL2RenderingContextBase::~WebGL2RenderingContextBase() { |
m_readFramebufferBinding = nullptr; |