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

Issue 1967633002: Updated VRService to match the latest Blink WebVR interface. (Closed)

Created:
4 years, 7 months ago by bajones
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, haraken, jam, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updated VRService to match the latest Blink WebVR interface. The Blink interface now exposes values that the previous version of the service did not supply. This patch updates the service and cardboard backend to supply all the necessary values for WebVR v1. It also takes the opportunity to do some renaming for consistency. Mainly "device" -> "display" to match the WebVR spec verbiage. BUG=389343 Committed: https://crrev.com/2f845c7547a8ea5d1edad21be0719f6b6b55f06b Cr-Commit-Position: refs/heads/master@{#395010}

Patch Set 1 #

Patch Set 2 : Some fixes for Android and update the unit test #

Total comments: 2

Patch Set 3 : Addressed feedback from esprehn@ and haraken@ #

Patch Set 4 : Removed TypeConverter, back to local conversion function. #

Total comments: 4

Patch Set 5 : And we're back to removing all the array size checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -231 lines) Patch
M content/browser/vr/android/cardboard/cardboard_vr_device.h View 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/vr/android/cardboard/cardboard_vr_device.cc View 1 2 3 5 chunks +49 lines, -59 lines 0 comments Download
M content/browser/vr/test/fake_vr_device.h View 1 1 chunk +7 lines, -7 lines 0 comments Download
M content/browser/vr/test/fake_vr_device.cc View 1 1 chunk +6 lines, -6 lines 0 comments Download
M content/browser/vr/vr_device.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/vr/vr_device_manager.h View 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/vr/vr_device_manager.cc View 5 chunks +13 lines, -9 lines 0 comments Download
M content/browser/vr/vr_device_manager_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.h View 3 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.cpp View 1 2 3 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 3 chunks +21 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplayCollection.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplayCollection.cpp View 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VREyeParameters.cpp View 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRPose.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/VRPose.cpp View 1 2 3 4 2 chunks +11 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRStageParameters.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRStageParameters.cpp View 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/vr/vr_service.mojom View 2 chunks +33 lines, -45 lines 0 comments Download

Messages

Total messages: 46 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967633002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967633002/20001
4 years, 7 months ago (2016-05-10 21:35:53 UTC) #2
bajones
The biggest question mark I have personally about this code is the conversion of mojo::WTFArray<float> ...
4 years, 7 months ago (2016-05-10 21:42:53 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-11 01:15:42 UTC) #6
haraken
On 2016/05/10 21:42:53, bajones wrote: > The biggest question mark I have personally about this ...
4 years, 7 months ago (2016-05-11 01:17:08 UTC) #8
esprehn
You should just std::move() the Mojo array into a WTF Array and then again into ...
4 years, 7 months ago (2016-05-11 01:52:38 UTC) #9
esprehn
What's the status here? Should I review?
4 years, 7 months ago (2016-05-18 00:35:41 UTC) #10
bajones
On 2016/05/18 00:35:41, esprehn wrote: > What's the status here? Should I review? Apologies, I've ...
4 years, 7 months ago (2016-05-18 03:06:52 UTC) #11
yzshen1
On 2016/05/11 01:17:08, haraken wrote: > On 2016/05/10 21:42:53, bajones wrote: > > The biggest ...
4 years, 7 months ago (2016-05-18 15:58:18 UTC) #12
bajones
I'm all for avoiding copies and I think that's the right direction to go eventually, ...
4 years, 7 months ago (2016-05-18 21:21:08 UTC) #13
esprehn
Please wrap your change description to 80 or 100 cols. :) https://codereview.chromium.org/1967633002/diff/20001/third_party/WebKit/Source/modules/vr/VRPose.cpp File third_party/WebKit/Source/modules/vr/VRPose.cpp (right): ...
4 years, 7 months ago (2016-05-18 21:55:29 UTC) #14
bajones
On 2016/05/18 21:55:29, esprehn wrote: > Please wrap your change description to 80 or 100 ...
4 years, 7 months ago (2016-05-18 23:25:19 UTC) #16
haraken
LGTM on my side. https://codereview.chromium.org/1967633002/diff/20001/third_party/WebKit/Source/modules/vr/VRPose.cpp File third_party/WebKit/Source/modules/vr/VRPose.cpp (right): https://codereview.chromium.org/1967633002/diff/20001/third_party/WebKit/Source/modules/vr/VRPose.cpp#newcode11 third_party/WebKit/Source/modules/vr/VRPose.cpp:11: DOMFloat32Array* mojoArrayToFloat32Array(const mojo::WTFArray<float>& vec) Shall ...
4 years, 7 months ago (2016-05-18 23:50:01 UTC) #17
bajones
On 2016/05/18 23:50:01, haraken wrote: > Shall we: > > - move this function to ...
4 years, 7 months ago (2016-05-19 20:41:11 UTC) #18
bajones
On 2016/05/19 20:41:11, bajones wrote: > On 2016/05/18 23:50:01, haraken wrote: > > Shall we: ...
4 years, 7 months ago (2016-05-19 20:42:15 UTC) #19
dcheng
On 2016/05/19 at 20:41:11, bajones wrote: > On 2016/05/18 23:50:01, haraken wrote: > > Shall ...
4 years, 7 months ago (2016-05-19 20:53:48 UTC) #20
bajones
On 2016/05/19 20:53:48, dcheng wrote: > On 2016/05/19 at 20:41:11, bajones wrote: > > On ...
4 years, 7 months ago (2016-05-19 21:44:07 UTC) #21
dcheng
https://codereview.chromium.org/1967633002/diff/60001/third_party/WebKit/Source/modules/vr/VRPose.cpp File third_party/WebKit/Source/modules/vr/VRPose.cpp (right): https://codereview.chromium.org/1967633002/diff/60001/third_party/WebKit/Source/modules/vr/VRPose.cpp#newcode13 third_party/WebKit/Source/modules/vr/VRPose.cpp:13: if (!vec.is_null() && vec.size()) { We don't actually expect ...
4 years, 7 months ago (2016-05-19 22:17:49 UTC) #23
Ken Rockot(use gerrit already)
On 2016/05/19 at 22:17:49, dcheng wrote: > https://codereview.chromium.org/1967633002/diff/60001/third_party/WebKit/Source/modules/vr/VRPose.cpp > File third_party/WebKit/Source/modules/vr/VRPose.cpp (right): > > https://codereview.chromium.org/1967633002/diff/60001/third_party/WebKit/Source/modules/vr/VRPose.cpp#newcode13 ...
4 years, 7 months ago (2016-05-19 22:34:31 UTC) #24
bajones
On 2016/05/19 22:34:31, Ken Rockot wrote: > Correct, it will not. It'll close the pipe ...
4 years, 7 months ago (2016-05-19 22:45:46 UTC) #25
Ken Rockot(use gerrit already)
On 2016/05/19 at 22:45:46, bajones wrote: > On 2016/05/19 22:34:31, Ken Rockot wrote: > > ...
4 years, 7 months ago (2016-05-19 22:58:35 UTC) #26
esprehn
So vector<T, N> in mojom produces a vector that is always size N or is ...
4 years, 7 months ago (2016-05-19 23:02:19 UTC) #27
Ken Rockot(use gerrit already)
Exactly size N. If the size is anything other than N, the message is rejected ...
4 years, 7 months ago (2016-05-19 23:02:52 UTC) #28
Ken Rockot(use gerrit already)
Exactly size N. If the size is anything other than N, the message is rejected ...
4 years, 7 months ago (2016-05-19 23:02:55 UTC) #29
bajones
Removed the size checks once again. One last question for Ken: I presume that if ...
4 years, 7 months ago (2016-05-20 03:11:50 UTC) #30
Ken Rockot(use gerrit already)
On 2016/05/20 at 03:11:50, bajones wrote: > Removed the size checks once again. One last ...
4 years, 7 months ago (2016-05-20 03:15:05 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967633002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967633002/80001
4 years, 7 months ago (2016-05-20 03:36:25 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 04:52:41 UTC) #35
bajones
dcheng@ or kenrb@, could I get a review on the changes to vr_service.mojom?
4 years, 7 months ago (2016-05-20 05:11:18 UTC) #37
dcheng
lgtm
4 years, 7 months ago (2016-05-20 05:13:27 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967633002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967633002/80001
4 years, 7 months ago (2016-05-20 05:22:31 UTC) #41
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-20 05:59:42 UTC) #43
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/2f845c7547a8ea5d1edad21be0719f6b6b55f06b Cr-Commit-Position: refs/heads/master@{#395010}
4 years, 7 months ago (2016-05-20 06:00:58 UTC) #45
yzshen1
4 years, 7 months ago (2016-05-23 15:40:07 UTC) #46
Message was sent while issue was closed.
> Generated bindings will only log if the sender writes the wrong size for a
fixed
> array. Maybe we should change it to DCHECK.

Currently we use DLOG_IF(FATAL, ...). It should cause the program to terminate
in debug build.

Powered by Google App Engine
This is Rietveld 408576698