Chromium Code Reviews| Index: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.idl |
| diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.idl b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.idl |
| index 5a0b95bc411e64ac1a2f7ec2ab0b41ceba785639..dbfa0504c3c0ef68494af4f15123b9fb3501c9a3 100644 |
| --- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.idl |
| +++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.idl |
| @@ -7,7 +7,8 @@ |
| typedef (OffscreenCanvasRenderingContext2D or |
| WebGLRenderingContext or |
| WebGL2RenderingContext) OffscreenRenderingContext; |
| +enum OffscreenRenderingContextType { "2d", "webgl" }; |
|
Justin Novosad
2016/11/17 15:36:42
please add webgl2.
Hmmm, and we need a test that
|
| partial interface OffscreenCanvas { |
| - [CallWith=ScriptState, RaisesException, RuntimeEnabled=ExperimentalCanvasFeatures] OffscreenRenderingContext? getContext(DOMString contextId, optional CanvasContextCreationAttributes attributes); |
| + [CallWith=ScriptState, RaisesException, RuntimeEnabled=ExperimentalCanvasFeatures] OffscreenRenderingContext? getContext(OffscreenRenderingContextType contextType, optional CanvasContextCreationAttributes attributes); |
| }; |