| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // https://wiki.whatwg.org/wiki/OffscreenCanvas |
| 6 |
| 7 [ |
| 8 Constructor(unsigned long width, unsigned long height), |
| 9 Exposed=(Window,Worker), |
| 10 GarbageCollected, |
| 11 RuntimeEnabled=ExperimentalCanvasFeatures, |
| 12 ] interface OffScreenCanvas { |
| 13 attribute unsigned long width; |
| 14 attribute unsigned long height; |
| 15 // RenderingContext? getContext(DOMString contextId, any... arguments); |
| 16 ImageBitmap transferToImageBitmap(); |
| 17 // Promise<Blob> toBlob(optional DOMString type, any... arguments); |
| 18 }; |
| 19 |
| 20 // TODO(crbug.com/547054): fix this once the Transferable base class is availabl
e. |
| 21 // OffscreenCanvas implements Transferable; |
| 22 // ImageBitmap implements Transferable; |
| OLD | NEW |