summaryrefslogtreecommitdiffstats
path: root/dom/webidl/OffscreenCanvasRenderingContext2D.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/webidl/OffscreenCanvasRenderingContext2D.webidl')
-rw-r--r--dom/webidl/OffscreenCanvasRenderingContext2D.webidl32
1 files changed, 32 insertions, 0 deletions
diff --git a/dom/webidl/OffscreenCanvasRenderingContext2D.webidl b/dom/webidl/OffscreenCanvasRenderingContext2D.webidl
new file mode 100644
index 0000000000..0929730ba9
--- /dev/null
+++ b/dom/webidl/OffscreenCanvasRenderingContext2D.webidl
@@ -0,0 +1,32 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * For more information on this interface, please see
+ * https://html.spec.whatwg.org/#the-offscreen-2d-rendering-context
+ */
+
+[Exposed=(Window,Worker), Pref="gfx.offscreencanvas.enabled"]
+interface OffscreenCanvasRenderingContext2D {
+ [Throws]
+ undefined commit();
+
+ readonly attribute OffscreenCanvas canvas;
+};
+
+OffscreenCanvasRenderingContext2D includes CanvasState;
+OffscreenCanvasRenderingContext2D includes CanvasTransform;
+OffscreenCanvasRenderingContext2D includes CanvasCompositing;
+OffscreenCanvasRenderingContext2D includes CanvasImageSmoothing;
+OffscreenCanvasRenderingContext2D includes CanvasFillStrokeStyles;
+OffscreenCanvasRenderingContext2D includes CanvasShadowStyles;
+OffscreenCanvasRenderingContext2D includes CanvasFilters;
+OffscreenCanvasRenderingContext2D includes CanvasRect;
+OffscreenCanvasRenderingContext2D includes CanvasDrawPath;
+OffscreenCanvasRenderingContext2D includes CanvasText;
+OffscreenCanvasRenderingContext2D includes CanvasDrawImage;
+OffscreenCanvasRenderingContext2D includes CanvasImageData;
+OffscreenCanvasRenderingContext2D includes CanvasPathDrawingStyles;
+OffscreenCanvasRenderingContext2D includes CanvasTextDrawingStyles;
+OffscreenCanvasRenderingContext2D includes CanvasPathMethods;