Bug 1526264 [wpt PR 15269] - Implement XRRenderState and XRSession.updateRenderState, a=testonly
authorBrandon Jones <bajones@chromium.org>
Mon, 18 Feb 2019 19:26:03 +0000
changeset 519193 b100d634acaa55ebea4bb86844eb499685a3ec31
parent 519192 d5848c9e1401cc9ee6687c68dca1b505890f7125
child 519194 c4e80aaaaef679b019f901076d4ee0ee4752dd31
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1526264, 15269, 922187, 1455618, 630010
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 1526264 [wpt PR 15269] - Implement XRRenderState and XRSession.updateRenderState, a=testonly Automatic update from web-platform-tests Implement XRRenderState and XRSession.updateRenderState Bug: 922187 Change-Id: I7f8837f9d32672d33a4143d51c30f6997f0cd180 Reviewed-on: https://chromium-review.googlesource.com/c/1455618 Reviewed-by: Klaus Weidner <klausw@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Brian Sheedy <bsheedy@chromium.org> Auto-Submit: Brandon Jones <bajones@chromium.org> Commit-Queue: Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/master@{#630010} -- wpt-commits: a21675eb295db812ef79dcc14eaf3efa9b427542 wpt-pr: 15269
testing/web-platform/tests/webxr/resources/webxr_util.js
--- a/testing/web-platform/tests/webxr/resources/webxr_util.js
+++ b/testing/web-platform/tests/webxr/resources/webxr_util.js
@@ -48,17 +48,18 @@ function xr_session_promise_test(
               .then(() => new Promise((resolve, reject) => {
                       // Perform the session request in a user gesture.
                       XRTest.simulateUserActivation(() => {
                         navigator.xr.requestSession(sessionOptions)
                             .then((session) => {
                               testSession = session;
                               // Session must have a baseLayer or frame requests
                               // will be ignored.
-                              session.baseLayer = new XRWebGLLayer(session, gl);
+                              session.updateRenderState({
+                                  baseLayer: new XRWebGLLayer(session, gl) });
                               resolve(func(session, testDeviceController, t));
                             })
                             .catch((err) => {
                               reject(
                                   'Session with params ' +
                                   JSON.stringify(sessionOptions) +
                                   ' was rejected on device ' +
                                   JSON.stringify(fakeDeviceInit) +