Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Issue 2331553002: Update WebVR interface to match the 1.1 spec (Closed)

Created:
4 years, 3 months ago by bajones
Modified:
4 years, 3 months ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update WebVR interface to match the 1.1 spec This update doesn't change the VR API backends at all, just transforms the data that they're currently providing to match the WebVR 1.1 spec. A future CL will plumb the changes all the way back to /device/vr. BUG=389343 Committed: https://crrev.com/aa686778a64f59ffab3fcda0531d7d2d1ab0ecc2 Cr-Commit-Position: refs/heads/master@{#418153}

Patch Set 1 #

Patch Set 2 : Removed problematic std::move (Worked on my machine!) #

Patch Set 3 : Removed missing files from .gni #

Patch Set 4 : Fixed potential null reference bug. #

Total comments: 3

Patch Set 5 : Removed dependency on TaskObserver #

Total comments: 3

Patch Set 6 : Addressed further feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -68 lines) Patch
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 3 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 2 3 4 5 7 chunks +14 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 3 4 5 5 chunks +30 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.idl View 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRFieldOfView.h View 3 chunks +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRFieldOfView.idl View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/Source/modules/vr/VRFieldOfViewInit.idl View 1 chunk +0 lines, -13 lines 0 comments Download
A third_party/WebKit/Source/modules/vr/VRFrameData.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/vr/VRFrameData.cpp View 1 2 3 1 chunk +213 lines, -0 lines 1 comment Download
A third_party/WebKit/Source/modules/vr/VRFrameData.idl View 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRPose.h View 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRPose.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRPose.idl View 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (20 generated)
bajones
mkwst@: Could you review this modules change? I primarily need a review of the .gni ...
4 years, 3 months ago (2016-09-09 22:51:33 UTC) #2
haraken
https://codereview.chromium.org/2331553002/diff/60001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2331553002/diff/60001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode89 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:89: Platform::current()->currentThread()->addTaskObserver(this); Why do you need to add a task ...
4 years, 3 months ago (2016-09-12 00:27:50 UTC) #16
bajones
https://codereview.chromium.org/2331553002/diff/60001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2331553002/diff/60001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode89 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:89: Platform::current()->currentThread()->addTaskObserver(this); On 2016/09/12 00:27:50, haraken wrote: > > Why ...
4 years, 3 months ago (2016-09-12 00:52:55 UTC) #17
haraken
https://codereview.chromium.org/2331553002/diff/60001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2331553002/diff/60001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode89 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:89: Platform::current()->currentThread()->addTaskObserver(this); On 2016/09/12 00:52:55, bajones wrote: > On 2016/09/12 ...
4 years, 3 months ago (2016-09-12 01:08:48 UTC) #18
bajones
Okay, updated to a version that doesn't depend on the TaskObserver. Has the potential to ...
4 years, 3 months ago (2016-09-12 01:57:44 UTC) #19
haraken
On 2016/09/12 01:57:44, bajones wrote: > Okay, updated to a version that doesn't depend on ...
4 years, 3 months ago (2016-09-12 05:03:18 UTC) #20
Mike West
The `.gni` change and general structure LGTM, but I can barely add numbers together. I'd ...
4 years, 3 months ago (2016-09-12 07:16:15 UTC) #21
bajones
Thanks mkwst@ and haraken@! mthiesse@ or klausw@: Could you take a look at the VR ...
4 years, 3 months ago (2016-09-12 15:33:57 UTC) #23
mthiesse
I'm new to the blink/idl/V8/spec world, but I left some hopefully-not-too-ignorant comments anyways. https://codereview.chromium.org/2331553002/diff/80001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File ...
4 years, 3 months ago (2016-09-12 15:58:41 UTC) #24
bajones
On 2016/09/12 15:58:41, mthiesse wrote: > third_party/WebKit/Source/modules/vr/VRDisplay.cpp:87: if (m_canUpdateFramePose) > { > Extract this block ...
4 years, 3 months ago (2016-09-12 18:29:34 UTC) #25
mthiesse
> > third_party/WebKit/Source/modules/vr/VRDisplay.cpp:113: VRPose* pose = > > VRPose::create(); > > Do you need to ...
4 years, 3 months ago (2016-09-12 18:47:13 UTC) #26
bajones
I'd say it's mostly irrelevant because of the deprecation, but let me look at another ...
4 years, 3 months ago (2016-09-12 18:52:34 UTC) #27
mthiesse
matrix math lgtm with minor comment. I should note that this is very domain specific ...
4 years, 3 months ago (2016-09-12 19:43:11 UTC) #28
bajones
On 2016/09/12 19:43:11, mthiesse wrote: > third_party/WebKit/Source/modules/vr/VRFrameData.cpp:25: float xScale = 2.0f / > (leftTan + ...
4 years, 3 months ago (2016-09-12 20:26:07 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2331553002/100001
4 years, 3 months ago (2016-09-12 20:26:47 UTC) #32
bajones
On 2016/09/12 20:26:07, bajones wrote: > On 2016/09/12 19:43:11, mthiesse wrote: > > third_party/WebKit/Source/modules/vr/VRFrameData.cpp:25: float ...
4 years, 3 months ago (2016-09-12 20:59:22 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/291596)
4 years, 3 months ago (2016-09-13 00:41:50 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2331553002/100001
4 years, 3 months ago (2016-09-13 00:46:53 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-13 03:06:01 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 03:07:26 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/aa686778a64f59ffab3fcda0531d7d2d1ab0ecc2
Cr-Commit-Position: refs/heads/master@{#418153}

Powered by Google App Engine
This is Rietveld 408576698