Bug 1523562 [wpt PR 15108] - Update interfaces/webxr.idl, a=testonly
authorautofoolip <auto@foolip.org>
Fri, 01 Feb 2019 11:40:37 +0000
changeset 458175 92a780f5eca95537b4274b17bbe063643858394c
parent 458174 21afd416b4906b2b0ff3745ad10cde023c36c46b
child 458176 48e765f7795c13b8cdd36ba27d6995eb3efd2762
push id35518
push useropoprus@mozilla.com
push dateFri, 08 Feb 2019 09:55:14 +0000
treeherdermozilla-central@3a3e393396f4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1523562, 15108
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1523562 [wpt PR 15108] - Update interfaces/webxr.idl, a=testonly Automatic update from web-platform-tests Update interfaces/webxr.idl (#15108) Source: https://github.com/tidoust/reffy-reports/blob/14be6ed/whatwg/idl/webxr.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/485261003 -- wpt-commits: 410c49df79c540d1b8f96d3299c9b4c5daa41a7d wpt-pr: 15108
testing/web-platform/tests/interfaces/webxr.idl
--- a/testing/web-platform/tests/interfaces/webxr.idl
+++ b/testing/web-platform/tests/interfaces/webxr.idl
@@ -23,22 +23,20 @@ enum XREnvironmentBlendMode {
   "alpha-blend",
 };
 
 [SecureContext, Exposed=Window] interface XRSession : EventTarget {
   // Attributes
   readonly attribute XRSessionMode mode;
   readonly attribute XRPresentationContext? outputContext;
   readonly attribute XREnvironmentBlendMode environmentBlendMode;
-
-  attribute double depthNear;
-  attribute double depthFar;
-  attribute XRLayer? baseLayer;
+  readonly attribute XRRenderState renderState;
 
   // Methods
+  void updateRenderState(optional XRRenderStateInit state);
   Promise<XRReferenceSpace> requestReferenceSpace(XRReferenceSpaceOptions options);
 
   FrozenArray<XRInputSource> getInputSources();
 
   long requestAnimationFrame(XRFrameRequestCallback callback);
   void cancelAnimationFrame(long handle);
 
   Promise<void> end();
@@ -59,16 +57,28 @@ enum XRSessionMode {
   "immersive-ar"
 };
 
 dictionary XRSessionCreationOptions {
   XRSessionMode mode = "inline";
   XRPresentationContext? outputContext = null;
 };
 
+dictionary XRRenderStateInit {
+  double depthNear;
+  double depthFar;
+  XRLayer? baseLayer;
+};
+
+[SecureContext, Exposed=Window] interface XRRenderState {
+  readonly attribute double depthNear;
+  readonly attribute double depthFar;
+  readonly attribute XRLayer? baseLayer;
+};
+
 callback XRFrameRequestCallback = void (DOMHighResTimeStamp time, XRFrame frame);
 
 [SecureContext, Exposed=Window] interface XRFrame {
   readonly attribute XRSession session;
 
   XRViewerPose? getViewerPose(optional XRReferenceSpace referenceSpace);
   XRInputPose? getInputPose(XRInputSource inputSource, optional XRReferenceSpace referenceSpace);
 };