Chromium Code Reviews| 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(); |
| }; |