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

Issue 2834843002: Add event listening function to openvr device (Closed)

Created:
3 years, 8 months ago by shaobo.yan
Modified:
3 years, 7 months ago
CC:
chromium-reviews, feature-vr-reviews_chromium.org, hokein.wu_gmail.com
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add event listening function to openvr device This patch add event listening function to openvr device by integrate pollNextEvent function into OpenVRDevice::OpenVRRenderLoop class and regist a callback function from OpenVRDevice to response to events. Currently, it only deal with events which generated by openvr device setting changes. BUG=714302 Review-Url: https://codereview.chromium.org/2834843002 Cr-Commit-Position: refs/heads/master@{#470771} Committed: https://chromium.googlesource.com/chromium/src/+/f548f57a4ec26eabaec6e466ee668aa29834b6c2

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address nhu@ some comments and temporary fix initial vr_system in each OnChange call issue #

Total comments: 1

Patch Set 3 : Address Ningxin@ comments and rebase #

Patch Set 4 : Modify some indents #

Total comments: 3

Patch Set 5 : fix ditto #

Patch Set 6 : using RunPollingEventCallback to safe thread #

Patch Set 7 : Initialize main_thread_task_runner_ #

Total comments: 4

Patch Set 8 : Address mthiesse@ comments #

Total comments: 9

Patch Set 9 : Address billorr1@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -3 lines) Patch
M device/vr/openvr/openvr_device.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 0 comments Download
M device/vr/openvr/openvr_device.cc View 1 2 3 4 5 6 7 8 4 chunks +70 lines, -3 lines 0 comments Download

Messages

Total messages: 47 (18 generated)
shaobo.yan
billorr@ and bajones@ : PTAL.
3 years, 8 months ago (2017-04-21 13:19:08 UTC) #2
shaobo.yan
nhu@ : Hi, Ningxin, could you also helped on reviewing this ? :)
3 years, 8 months ago (2017-04-22 02:27:20 UTC) #10
nhu
Just provide some inputs for your reference. Please wait for billorr@ and bajones@ for formal ...
3 years, 8 months ago (2017-04-24 01:47:07 UTC) #11
shaobo.yan
Ningxin@: I've explain some of the design, pls review them :) https://codereview.chromium.org/2834843002/diff/1/device/vr/openvr/openvr_device.cc File device/vr/openvr/openvr_device.cc (right): ...
3 years, 8 months ago (2017-04-24 02:27:28 UTC) #12
shaobo.yan
Fix multi initial vr_system issue by adding GetVRSystem in OpenVRRenderLoop. However, I think a standalone ...
3 years, 8 months ago (2017-04-24 07:10:13 UTC) #13
nhu
https://codereview.chromium.org/2834843002/diff/20001/device/vr/openvr/openvr_device.cc File device/vr/openvr/openvr_device.cc (right): https://codereview.chromium.org/2834843002/diff/20001/device/vr/openvr/openvr_device.cc#newcode89 device/vr/openvr/openvr_device.cc:89: auto vr_system = In https://codereview.chromium.org/2825203004/, we consolidated the VR_Init ...
3 years, 8 months ago (2017-04-25 00:52:19 UTC) #14
shaobo.yan
Modify patch based on nhu@ suggestion. Ningxin@ : Pls take another look at patch set ...
3 years, 8 months ago (2017-04-26 04:18:31 UTC) #15
nhu
On 2017/04/26 04:18:31, shaobo.yan wrote: > Modify patch based on nhu@ suggestion. > Ningxin@ : ...
3 years, 8 months ago (2017-04-26 07:48:30 UTC) #16
bajones
https://codereview.chromium.org/2834843002/diff/60001/device/vr/openvr/openvr_device.cc File device/vr/openvr/openvr_device.cc (right): https://codereview.chromium.org/2834843002/diff/60001/device/vr/openvr/openvr_device.cc#newcode147 device/vr/openvr/openvr_device.cc:147: // careated and callback need to be registed. careated ...
3 years, 7 months ago (2017-04-26 18:06:05 UTC) #17
mthiesse
https://codereview.chromium.org/2834843002/diff/60001/device/vr/openvr/openvr_device.cc File device/vr/openvr/openvr_device.cc (right): https://codereview.chromium.org/2834843002/diff/60001/device/vr/openvr/openvr_device.cc#newcode296 device/vr/openvr/openvr_device.cc:296: on_polling_events_.Run(); On 2017/04/26 18:06:05, bajones wrote: > This does ...
3 years, 7 months ago (2017-04-26 18:14:16 UTC) #19
shaobo.yan
On 2017/04/26 18:06:05, bajones wrote: > https://codereview.chromium.org/2834843002/diff/60001/device/vr/openvr/openvr_device.cc > File device/vr/openvr/openvr_device.cc (right): > > https://codereview.chromium.org/2834843002/diff/60001/device/vr/openvr/openvr_device.cc#newcode147 > ...
3 years, 7 months ago (2017-04-27 01:52:50 UTC) #20
shaobo.yan
On 2017/04/26 18:14:16, mthiesse wrote: > https://codereview.chromium.org/2834843002/diff/60001/device/vr/openvr/openvr_device.cc > File device/vr/openvr/openvr_device.cc (right): > > https://codereview.chromium.org/2834843002/diff/60001/device/vr/openvr/openvr_device.cc#newcode296 > ...
3 years, 7 months ago (2017-04-27 01:56:24 UTC) #21
shaobo.yan
On 2017/04/26 07:48:30, nhu wrote: > On 2017/04/26 04:18:31, shaobo.yan wrote: > > Modify patch ...
3 years, 7 months ago (2017-04-27 01:57:34 UTC) #22
shaobo.yan
Patch Set 6 initialize main_thread_task_runner_ in OpenVRRenderLoop to enable postTask. The patch set could compile ...
3 years, 7 months ago (2017-05-02 02:00:34 UTC) #23
shaobo.yan
On 2017/05/02 02:00:34, shaobo.yan wrote: > Patch Set 6 initialize main_thread_task_runner_ in OpenVRRenderLoop to enable ...
3 years, 7 months ago (2017-05-02 02:01:06 UTC) #24
mthiesse
https://codereview.chromium.org/2834843002/diff/120001/device/vr/openvr/openvr_device.cc File device/vr/openvr/openvr_device.cc (right): https://codereview.chromium.org/2834843002/diff/120001/device/vr/openvr/openvr_device.cc#newcode75 device/vr/openvr/openvr_device.cc:75: void RunPollingEventsCallback(const base::Callback<void()>& callback) { Remove this. (See comment ...
3 years, 7 months ago (2017-05-02 14:46:10 UTC) #25
shaobo.yan
On 2017/05/02 14:46:10, mthiesse wrote: > https://codereview.chromium.org/2834843002/diff/120001/device/vr/openvr/openvr_device.cc > File device/vr/openvr/openvr_device.cc (right): > > https://codereview.chromium.org/2834843002/diff/120001/device/vr/openvr/openvr_device.cc#newcode75 > ...
3 years, 7 months ago (2017-05-03 02:03:18 UTC) #26
mthiesse
lgtm
3 years, 7 months ago (2017-05-03 02:05:55 UTC) #27
shaobo.yan
thx for mthiesse@ reviewing! bajones@ : Could you pls take another look at this? thx!
3 years, 7 months ago (2017-05-03 02:10:33 UTC) #30
shaobo.yan
ping bajones@ softly. Could you pls take another look at Patch Set 8 ? thx ...
3 years, 7 months ago (2017-05-04 00:48:11 UTC) #33
shaobo.yan
bajones@: Softly ping :)
3 years, 7 months ago (2017-05-05 00:40:23 UTC) #34
shaobo.yan
Ping bajones@ softly
3 years, 7 months ago (2017-05-08 01:02:22 UTC) #35
shaobo.yan
softly ping bajones@ :)
3 years, 7 months ago (2017-05-09 00:50:09 UTC) #36
billorr1
LGTM. A few nitpicking comments, mostly about comment wording. bajones won't be able to respond ...
3 years, 7 months ago (2017-05-09 15:50:03 UTC) #38
shaobo.yan
Thx billorr1@ for reviewing. Patch Set 9 has uploaded to address these comments. https://codereview.chromium.org/2834843002/diff/140001/device/vr/openvr/openvr_device.cc File ...
3 years, 7 months ago (2017-05-10 03:20:33 UTC) #39
shaobo.yan
Hi, billorr1@ Since patch set 9 has some new modification which is not reviewed, Would ...
3 years, 7 months ago (2017-05-11 01:04:34 UTC) #40
billorr1
LGTM
3 years, 7 months ago (2017-05-11 01:12:20 UTC) #41
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/2834843002/160001
3 years, 7 months ago (2017-05-11 01:14:46 UTC) #44
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 01:27:09 UTC) #47
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/f548f57a4ec26eabaec6e466ee66...

Powered by Google App Engine
This is Rietveld 408576698