Index: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl |
diff --git a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.idl b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl |
similarity index 50% |
copy from third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.idl |
copy to third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl |
index ac6f794a3cbc2519847870de0ee1f43e30a3e946..496e08cefffd571f7104cf5779c71a9da6b95a97 100644 |
--- a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.idl |
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl |
@@ -2,13 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// Note: The official spec is WIP. |
Justin Novosad
2016/03/07 15:30:27
Add a URL for spec proposal this is based on.
|
+ |
[ |
+ GarbageCollected, |
+ Exposed=(Window,Worker), |
RuntimeEnabled=ExperimentalCanvasFeatures, |
- SetWrapperReferenceFrom=canvas, |
- WillBeGarbageCollected, |
-] interface ImageBitmapRenderingContext { |
+] interface OffscreenCanvasRenderingContext2D { |
// back-reference to the canvas |
- readonly attribute HTMLCanvasElement canvas; |
- |
- void transferImageBitmap(ImageBitmap bitmap); |
+ readonly attribute OffscreenCanvas offscreenCanvas; |
}; |
+ |
+OffscreenCanvasRenderingContext2D implements CanvasPathMethods; |