Commit 399491dd authored by Eric Willigers's avatar Eric Willigers Committed by Commit Bot

Retire OffscreenCanvas, OffscreenCanvasText flags

OffscreenCanvas shipped in M69.
https://chromestatus.com/features/5681560598609920

The flags OffscreenCanvas and OffscreenCanvasText have been stable since
https://chromium-review.googlesource.com/1119156

Bug: 563816
Change-Id: Ie212e1c83f0c366ca6a63a34b842481eb9566845
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1616930
Auto-Submit: Eric Willigers <ericwilligers@chromium.org>
Reviewed-by: default avatarFernando Serboncini <fserb@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662032}
parent ca31607f
...@@ -39,7 +39,7 @@ enum FontFaceLoadStatus { ...@@ -39,7 +39,7 @@ enum FontFaceLoadStatus {
[ [
ActiveScriptWrappable, ActiveScriptWrappable,
Exposed(Window StableBlinkFeatures, Worker OffscreenCanvasText), Exposed=(Window,Worker),
// FIXME: This should be (DOMString or BinaryData), where BinaryData is typedef of (ArrayBuffer or ArrayBufferView) // FIXME: This should be (DOMString or BinaryData), where BinaryData is typedef of (ArrayBuffer or ArrayBufferView)
Constructor(DOMString family, (DOMString or ArrayBuffer or ArrayBufferView) source, optional FontFaceDescriptors descriptors), Constructor(DOMString family, (DOMString or ArrayBuffer or ArrayBufferView) source, optional FontFaceDescriptors descriptors),
ConstructorCallWith=ExecutionContext, ConstructorCallWith=ExecutionContext,
......
...@@ -36,7 +36,7 @@ enum FontFaceSetLoadStatus { "loading", "loaded" }; ...@@ -36,7 +36,7 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };
// [NoInterfaceObject] // [NoInterfaceObject]
[ [
NoInterfaceObject, NoInterfaceObject,
Exposed(Window StableBlinkFeatures, Worker OffscreenCanvasText) Exposed=(Window,Worker)
] interface FontFaceSet : EventTarget { ] interface FontFaceSet : EventTarget {
setlike<FontFace>; setlike<FontFace>;
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
Constructor([EnforceRange] unsigned long width, [EnforceRange] unsigned long height), Constructor([EnforceRange] unsigned long width, [EnforceRange] unsigned long height),
Exposed=(Window,Worker), Exposed=(Window,Worker),
Transferable, Transferable,
RuntimeEnabled=OffscreenCanvas,
MeasureAs=OffscreenCanvas MeasureAs=OffscreenCanvas
] interface OffscreenCanvas : EventTarget { ] interface OffscreenCanvas : EventTarget {
attribute [EnforceRange] unsigned long width; attribute [EnforceRange] unsigned long width;
......
...@@ -70,13 +70,13 @@ ...@@ -70,13 +70,13 @@
// AnimationFrameProvider mixin // AnimationFrameProvider mixin
// https://html.spec.whatwg.org/C/#animation-frames // https://html.spec.whatwg.org/C/#animation-frames
[RuntimeEnabled=OffscreenCanvas, RaisesException] long requestAnimationFrame(FrameRequestCallback callback); [RaisesException] long requestAnimationFrame(FrameRequestCallback callback);
[RuntimeEnabled=OffscreenCanvas] void cancelAnimationFrame(long handle); void cancelAnimationFrame(long handle);
// FontFaceSource // FontFaceSource
// https://drafts.csswg.org/css-font-loading-3/#font-face-source // https://drafts.csswg.org/css-font-loading-3/#font-face-source
// TODO(fserb): temporarly until we can enable the interface below. // TODO(fserb): temporarly until we can enable the interface below.
[RuntimeEnabled=OffscreenCanvasText] readonly attribute FontFaceSet fonts; readonly attribute FontFaceSet fonts;
// TrustedTypes API: http://github.com/wicg/trusted-types // TrustedTypes API: http://github.com/wicg/trusted-types
[OriginTrialEnabled=TrustedDOMTypes, Unforgeable] readonly attribute TrustedTypePolicyFactory TrustedTypes; [OriginTrialEnabled=TrustedDOMTypes, Unforgeable] readonly attribute TrustedTypePolicyFactory TrustedTypes;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
// https://html.spec.whatwg.org/C#canvasgradient // https://html.spec.whatwg.org/C#canvasgradient
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface CanvasGradient { ] interface CanvasGradient {
[RaisesException] void addColorStop(double offset, DOMString color); [RaisesException] void addColorStop(double offset, DOMString color);
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface CanvasPattern { ] interface CanvasPattern {
[RaisesException] void setTransform(optional DOMMatrix2DInit transform); [RaisesException] void setTransform(optional DOMMatrix2DInit transform);
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
[ [
Constructor(optional (Path2D or DOMString) path), Constructor(optional (Path2D or DOMString) path),
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures, PaintWorklet StableBlinkFeatures) Exposed=(PaintWorklet,Window,Worker)
] interface Path2D { ] interface Path2D {
[RaisesException] void addPath(Path2D path, optional DOMMatrix2DInit transform); [RaisesException] void addPath(Path2D path, optional DOMMatrix2DInit transform);
}; };
......
...@@ -21,5 +21,5 @@ typedef (CanvasRenderingContext2D or ...@@ -21,5 +21,5 @@ typedef (CanvasRenderingContext2D or
// (and is not undefined or null). The binding must ignore this. // (and is not undefined or null). The binding must ignore this.
// Related spec issue: https://github.com/whatwg/html/issues/595 // Related spec issue: https://github.com/whatwg/html/issues/595
[RaisesException] RenderingContext? getContext(DOMString contextId, [PermissiveDictionaryConversion] optional CanvasContextCreationAttributesModule attributes); [RaisesException] RenderingContext? getContext(DOMString contextId, [PermissiveDictionaryConversion] optional CanvasContextCreationAttributesModule attributes);
[RuntimeEnabled=OffscreenCanvas, RaisesException, MeasureAs=OffscreenCanvas] OffscreenCanvas transferControlToOffscreen(); [RaisesException, MeasureAs=OffscreenCanvas] OffscreenCanvas transferControlToOffscreen();
}; };
...@@ -22,5 +22,5 @@ typedef (CanvasRenderingContext2D or ...@@ -22,5 +22,5 @@ typedef (CanvasRenderingContext2D or
// (and is not undefined or null). The binding must ignore this. // (and is not undefined or null). The binding must ignore this.
// Related spec issue: https://github.com/whatwg/html/issues/595 // Related spec issue: https://github.com/whatwg/html/issues/595
[RaisesException] RenderingContext? getContext(DOMString contextId, [PermissiveDictionaryConversion] optional CanvasContextCreationAttributesModule attributes); [RaisesException] RenderingContext? getContext(DOMString contextId, [PermissiveDictionaryConversion] optional CanvasContextCreationAttributesModule attributes);
[RuntimeEnabled=OffscreenCanvas, RaisesException, MeasureAs=OffscreenCanvas] OffscreenCanvas transferControlToOffscreen(); [RaisesException, MeasureAs=OffscreenCanvas] OffscreenCanvas transferControlToOffscreen();
}; };
...@@ -12,5 +12,5 @@ enum OffscreenRenderingContextType { "2d", "webgl", "webgl2", "webgl2-compute" } ...@@ -12,5 +12,5 @@ enum OffscreenRenderingContextType { "2d", "webgl", "webgl2", "webgl2-compute" }
[ [
ImplementedAs=OffscreenCanvasModule ImplementedAs=OffscreenCanvasModule
] partial interface OffscreenCanvas { ] partial interface OffscreenCanvas {
[CallWith=ExecutionContext, RaisesException, RuntimeEnabled=OffscreenCanvas] OffscreenRenderingContext? getContext(OffscreenRenderingContextType contextType, optional CanvasContextCreationAttributesModule attributes); [CallWith=ExecutionContext, RaisesException] OffscreenRenderingContext? getContext(OffscreenRenderingContextType contextType, optional CanvasContextCreationAttributesModule attributes);
}; };
...@@ -13,5 +13,5 @@ enum OffscreenRenderingContextType { "2d", "webgl", "webgl2", "webgl2-compute" } ...@@ -13,5 +13,5 @@ enum OffscreenRenderingContextType { "2d", "webgl", "webgl2", "webgl2-compute" }
[ [
ImplementedAs=OffscreenCanvasModule ImplementedAs=OffscreenCanvasModule
] partial interface OffscreenCanvas { ] partial interface OffscreenCanvas {
[CallWith=ExecutionContext, RaisesException, RuntimeEnabled=OffscreenCanvas] OffscreenRenderingContext? getContext(OffscreenRenderingContextType contextType, optional CanvasContextCreationAttributesModule attributes); [CallWith=ExecutionContext, RaisesException] OffscreenRenderingContext? getContext(OffscreenRenderingContextType contextType, optional CanvasContextCreationAttributesModule attributes);
}; };
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
// https://html.spec.whatwg.org/C/#the-offscreen-2d-rendering-context // https://html.spec.whatwg.org/C/#the-offscreen-2d-rendering-context
[ [
Exposed=(Window,Worker), Exposed=(Window,Worker)
RuntimeEnabled=OffscreenCanvas
] interface OffscreenCanvasRenderingContext2D { ] interface OffscreenCanvasRenderingContext2D {
// back-reference to the canvas // back-reference to the canvas
[ImplementedAs=offscreenCanvasForBinding] readonly attribute OffscreenCanvas canvas; [ImplementedAs=offscreenCanvasForBinding] readonly attribute OffscreenCanvas canvas;
...@@ -103,7 +102,7 @@ ...@@ -103,7 +102,7 @@
attribute DOMString font; // (default 10px sans-serif) attribute DOMString font; // (default 10px sans-serif)
attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start") attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic") attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic")
[RuntimeEnabled=OffscreenCanvasText] attribute DOMString direction; // "inherit", "rtl", "ltr" (default: "inherit") attribute DOMString direction; // "inherit", "rtl", "ltr" (default: "inherit")
}; };
OffscreenCanvasRenderingContext2D includes CanvasPath; OffscreenCanvasRenderingContext2D includes CanvasPath;
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
[ [
DoNotCheckConstants, DoNotCheckConstants,
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGL2RenderingContext { }; ] interface WebGL2RenderingContext { };
WebGL2RenderingContext includes WebGLRenderingContextBase; WebGL2RenderingContext includes WebGLRenderingContextBase;
WebGL2RenderingContext includes WebGL2RenderingContextBase; WebGL2RenderingContext includes WebGL2RenderingContextBase;
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.11 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.11
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLActiveInfo { ] interface WebGLActiveInfo {
readonly attribute long size; readonly attribute long size;
readonly attribute unsigned long type; readonly attribute unsigned long type;
......
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.4 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.4
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLBuffer { ] interface WebGLBuffer {
}; };
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.5 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.5
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLFramebuffer { ] interface WebGLFramebuffer {
}; };
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.6 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.6
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLProgram { ] interface WebGLProgram {
}; };
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.2 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.2
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLQuery { ] interface WebGLQuery {
}; };
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLRenderbuffer { ] interface WebGLRenderbuffer {
}; };
...@@ -27,6 +27,6 @@ ...@@ -27,6 +27,6 @@
[ [
DoNotCheckConstants, DoNotCheckConstants,
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLRenderingContext { }; ] interface WebGLRenderingContext { };
WebGLRenderingContext includes WebGLRenderingContextBase; WebGLRenderingContext includes WebGLRenderingContextBase;
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.3 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.3
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLSampler { ] interface WebGLSampler {
}; };
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.8 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.8
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLShader { ] interface WebGLShader {
}; };
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.12 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.12
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLShaderPrecisionFormat { ] interface WebGLShaderPrecisionFormat {
readonly attribute long rangeMin; readonly attribute long rangeMin;
readonly attribute long rangeMax; readonly attribute long rangeMax;
......
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.4 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.4
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLSync { ] interface WebGLSync {
}; };
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.9 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.9
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLTexture { ] interface WebGLTexture {
[RuntimeEnabled=ExtraWebGLVideoTextureMetadata] readonly attribute unsigned long lastUploadedVideoWidth; [RuntimeEnabled=ExtraWebGLVideoTextureMetadata] readonly attribute unsigned long lastUploadedVideoWidth;
[RuntimeEnabled=ExtraWebGLVideoTextureMetadata] readonly attribute unsigned long lastUploadedVideoHeight; [RuntimeEnabled=ExtraWebGLVideoTextureMetadata] readonly attribute unsigned long lastUploadedVideoHeight;
......
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.5 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.5
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLTransformFeedback { ] interface WebGLTransformFeedback {
}; };
...@@ -27,6 +27,6 @@ ...@@ -27,6 +27,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.10 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.10
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLUniformLocation { ] interface WebGLUniformLocation {
}; };
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.6 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.6
[ [
Exposed(Worker OffscreenCanvas, Window StableBlinkFeatures) Exposed=(Window,Worker)
] interface WebGLVertexArrayObject { ] interface WebGLVertexArrayObject {
}; };
...@@ -969,18 +969,10 @@ ...@@ -969,18 +969,10 @@
{ {
name: "OffMainThreadCSSPaint", name: "OffMainThreadCSSPaint",
}, },
{
name: "OffscreenCanvas",
status: "stable",
},
{ {
name: "OffscreenCanvasCommit", name: "OffscreenCanvasCommit",
status: "experimental", status: "experimental",
}, },
{
name: "OffscreenCanvasText",
status: "stable",
},
{ {
name: "OnDeviceChange", name: "OnDeviceChange",
// Android does not yet support SystemMonitor. // Android does not yet support SystemMonitor.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment