mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Add a dummy implementation of all the XR Layer types
This commit is contained in:
parent
754019f6bc
commit
d255dc9f7b
18 changed files with 337 additions and 85 deletions
|
@ -5,11 +5,11 @@
|
|||
// https://immersive-web.github.io/layers/#xrmediabindingtype
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.layers.enabled"]
|
||||
interface XRMediaBinding {
|
||||
constructor(XRSession session);
|
||||
[Throws] constructor(XRSession session);
|
||||
|
||||
// XRQuadLayer createQuadVideoLayer(HTMLVideoElement video, optional XRMediaLayerInit init = {});
|
||||
// XRCylinderLayer createCylinderVideoLayer(HTMLVideoElement video, optional XRMediaLayerInit init = {});
|
||||
// XREquirectLayer createEquirectVideoLayer(HTMLVideoElement video, optional XRMediaLayerInit init = {});
|
||||
[Throws] XRQuadLayer createQuadLayer(HTMLVideoElement video, XRMediaLayerInit init);
|
||||
[Throws] XRCylinderLayer createCylinderLayer(HTMLVideoElement video, XRMediaLayerInit init);
|
||||
[Throws] XREquirectLayer createEquirectLayer(HTMLVideoElement video, XRMediaLayerInit init);
|
||||
};
|
||||
|
||||
dictionary XRMediaLayerInit {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue