Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp

Issue 1881563003: Implement OffscreenCanvas.getContext('webgl') (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offscreenCanvas.getContext('webgl') crashes on worker Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
index 588a81e6fcaf05273736d8ab8479c5b84a3e2161..54da68f3708a75cc548bc49cbb143ce161881d0c 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
@@ -84,6 +84,17 @@ void WebGL2RenderingContext::setCanvasGetContextResult(RenderingContext& result)
result.setWebGL2RenderingContext(this);
}
+void WebGL2RenderingContext::setOffscreenCanvasGetContextResult(OffscreenRenderingContext& result)
+{
+ result.setWebGL2RenderingContext(this);
+}
+
+ImageBitmap* WebGL2RenderingContext::transferToImageBitmap(ExceptionState& exceptionState)
+{
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
void WebGL2RenderingContext::registerContextExtensions()
{
// Register extensions.

Powered by Google App Engine
This is Rietveld 408576698