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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl

Issue 1748163003: Add rendering context and rendering 2D context to OffscreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make OffscreenCanvasRenderingContext Modules exportable" Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46%
copy from third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.idl
copy to third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl
index ac6f794a3cbc2519847870de0ee1f43e30a3e946..5c33a575d9ff207ad3753de515edbbc2430d3c0e 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 at wiki.whatwg.org/wiki/OffscreenCanvas.
+
[
+ 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;
« no previous file with comments | « third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698