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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl

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/offscreencanvas/OffscreenCanvas.idl
diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl
index 1896a52838d352524fba1adb976e047527606c6f..b75ed4288ac8fcff7f4eeb10399765fa5d7bc04b 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl
@@ -4,8 +4,9 @@
// Note: If there're more context types implemented, they should be added here
// to form a union type of OffscreenCanvasRenderingContext
-typedef OffscreenCanvasRenderingContext2D OffscreenRenderingContext;
-
+typedef (OffscreenCanvasRenderingContext2D or
+ WebGLRenderingContext or
+ WebGL2RenderingContext) OffscreenRenderingContext;
Justin Novosad 2016/04/20 20:07:27 WebGL2RenderingContext creation is not covered by
xidachen 2016/04/20 20:52:09 I think we should start with small CLs, so this CL
[
Constructor([EnforceRange] unsigned long width, [EnforceRange] unsigned long height),
Exposed=(Window,Worker),
@@ -14,6 +15,6 @@ typedef OffscreenCanvasRenderingContext2D OffscreenRenderingContext;
[EnforceRange] attribute unsigned long width;
[EnforceRange] attribute unsigned long height;
- OffscreenRenderingContext? getContext(DOMString contextId, optional CanvasContextCreationAttributes attributes);
+ [CallWith=ScriptState] OffscreenRenderingContext? getContext(DOMString contextId, optional CanvasContextCreationAttributes attributes);
xlai (Olivia) 2016/04/20 20:42:16 I can see that the only reason that you added [Cal
xidachen 2016/04/20 20:52:09 Thank you for the suggestion, will do that.
[RaisesException] ImageBitmap transferToImageBitmap();
};

Powered by Google App Engine
This is Rietveld 408576698