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

Issue 2668003003: Provide WebVR pose data only to the focused frame. (Closed)

Created:
3 years, 10 months ago by mthiesse
Modified:
3 years, 10 months ago
Reviewers:
haraken, bajones, jbroman
CC:
blink-reviews, chromium-reviews, dcheng, feature-vr-reviews_chromium.org, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide WebVR pose data only to the focused frame. Testing is tracked in issue 679827. For now this is manually tested. BUG=683322, 686890 Review-Url: https://codereview.chromium.org/2668003003 Cr-Commit-Position: refs/heads/master@{#448315} Committed: https://chromium.googlesource.com/chromium/src/+/527310a8c856c31a016c8f9c9ddb90a5290aef5b

Patch Set 1 #

Patch Set 2 : Only connect when focused #

Patch Set 3 : Ensure focus is set properly on new VrDisplays #

Patch Set 4 : I'm learning so many things #

Patch Set 5 : Ensure the content frame gets focused when we enter VR. #

Patch Set 6 : Add missing file #

Patch Set 7 : Update to correct copyright notice? #

Total comments: 14

Patch Set 8 : Address comments #

Total comments: 2

Patch Set 9 : Address comment #

Total comments: 8

Patch Set 10 : Address comments #

Total comments: 4

Patch Set 11 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -19 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/page/FocusChangedObserver.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/page/FocusChangedObserver.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.h View 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +20 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.h View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (7 generated)
mthiesse
jbroman@chromium.org: Please review changes in Source/core/ bajones@chromium.org: Please review changes in Source/modules/
3 years, 10 months ago (2017-01-31 18:21:04 UTC) #2
jbroman
Missing core/page/FocusChangedObserver.h?
3 years, 10 months ago (2017-02-01 06:14:55 UTC) #3
mthiesse
On 2017/02/01 06:14:55, jbroman wrote: > Missing core/page/FocusChangedObserver.h? Whoops, uploaded.
3 years, 10 months ago (2017-02-01 15:17:09 UTC) #4
mthiesse
On 2017/02/01 06:14:55, jbroman wrote: > Missing core/page/FocusChangedObserver.h? Whoops, uploaded.
3 years, 10 months ago (2017-02-01 15:17:10 UTC) #5
bajones
This LGTM as a quick fix, but similar to https://codereview.chromium.org/2665293002/ we ideally want to track ...
3 years, 10 months ago (2017-02-02 00:28:47 UTC) #7
mthiesse
On 2017/02/02 00:28:47, bajones wrote: > This LGTM as a quick fix, but similar to ...
3 years, 10 months ago (2017-02-02 15:30:45 UTC) #8
jbroman
On 2017/02/02 at 15:30:45, mthiesse wrote: > On 2017/02/02 00:28:47, bajones wrote: > > This ...
3 years, 10 months ago (2017-02-02 16:07:20 UTC) #9
mthiesse
https://codereview.chromium.org/2668003003/diff/140001/third_party/WebKit/Source/core/page/FocusChangedObserver.h File third_party/WebKit/Source/core/page/FocusChangedObserver.h (right): https://codereview.chromium.org/2668003003/diff/140001/third_party/WebKit/Source/core/page/FocusChangedObserver.h#newcode1 third_party/WebKit/Source/core/page/FocusChangedObserver.h:1: /* On 2017/02/02 16:07:20, jbroman wrote: > Wrong copyright ...
3 years, 10 months ago (2017-02-02 17:52:18 UTC) #10
haraken
https://codereview.chromium.org/2668003003/diff/160001/third_party/WebKit/Source/modules/vr/VRDisplay.h File third_party/WebKit/Source/modules/vr/VRDisplay.h (right): https://codereview.chromium.org/2668003003/diff/160001/third_party/WebKit/Source/modules/vr/VRDisplay.h#newcode172 third_party/WebKit/Source/modules/vr/VRDisplay.h:172: bool m_focused = false; It looks a bit weird ...
3 years, 10 months ago (2017-02-03 04:21:47 UTC) #12
mthiesse
https://codereview.chromium.org/2668003003/diff/160001/third_party/WebKit/Source/modules/vr/VRDisplay.h File third_party/WebKit/Source/modules/vr/VRDisplay.h (right): https://codereview.chromium.org/2668003003/diff/160001/third_party/WebKit/Source/modules/vr/VRDisplay.h#newcode172 third_party/WebKit/Source/modules/vr/VRDisplay.h:172: bool m_focused = false; On 2017/02/03 04:21:47, haraken wrote: ...
3 years, 10 months ago (2017-02-03 15:54:21 UTC) #13
haraken
Mostly looks good. https://codereview.chromium.org/2668003003/diff/180001/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp File third_party/WebKit/Source/modules/vr/NavigatorVR.cpp (right): https://codereview.chromium.org/2668003003/diff/180001/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp#newcode30 third_party/WebKit/Source/modules/vr/NavigatorVR.cpp:30: bool isFrameFocused(LocalFrame* frame) { I'd move ...
3 years, 10 months ago (2017-02-03 18:46:18 UTC) #14
mthiesse
https://codereview.chromium.org/2668003003/diff/180001/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp File third_party/WebKit/Source/modules/vr/NavigatorVR.cpp (right): https://codereview.chromium.org/2668003003/diff/180001/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp#newcode30 third_party/WebKit/Source/modules/vr/NavigatorVR.cpp:30: bool isFrameFocused(LocalFrame* frame) { On 2017/02/03 18:46:18, haraken wrote: ...
3 years, 10 months ago (2017-02-03 20:47:29 UTC) #15
bajones
On 2017/02/03 20:47:29, mthiesse wrote: > I don't think this is the kind of frame ...
3 years, 10 months ago (2017-02-03 21:11:09 UTC) #16
mthiesse
On 2017/02/03 21:11:09, bajones wrote: > On 2017/02/03 20:47:29, mthiesse wrote: > > I don't ...
3 years, 10 months ago (2017-02-03 21:17:07 UTC) #17
bajones
On 2017/02/03 21:17:07, mthiesse wrote: > It's not tracking poses, it's tracking frames, and it's ...
3 years, 10 months ago (2017-02-03 21:19:57 UTC) #18
haraken
Thanks, makes sense. LGTM. https://codereview.chromium.org/2668003003/diff/200001/third_party/WebKit/Source/core/page/FocusChangedObserver.h File third_party/WebKit/Source/core/page/FocusChangedObserver.h (right): https://codereview.chromium.org/2668003003/diff/200001/third_party/WebKit/Source/core/page/FocusChangedObserver.h#newcode22 third_party/WebKit/Source/core/page/FocusChangedObserver.h:22: void observe(Page*); Maybe can we ...
3 years, 10 months ago (2017-02-06 01:33:17 UTC) #19
jbroman
lgtm 2, fwiw https://codereview.chromium.org/2668003003/diff/200001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2668003003/diff/200001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode755 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:755: if (m_navigatorVR->isFocused()) { nit: This check ...
3 years, 10 months ago (2017-02-06 15:34:18 UTC) #20
mthiesse
https://codereview.chromium.org/2668003003/diff/200001/third_party/WebKit/Source/core/page/FocusChangedObserver.h File third_party/WebKit/Source/core/page/FocusChangedObserver.h (right): https://codereview.chromium.org/2668003003/diff/200001/third_party/WebKit/Source/core/page/FocusChangedObserver.h#newcode22 third_party/WebKit/Source/core/page/FocusChangedObserver.h:22: void observe(Page*); On 2017/02/06 01:33:17, haraken wrote: > > ...
3 years, 10 months ago (2017-02-06 16:37:47 UTC) #21
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/2668003003/220001
3 years, 10 months ago (2017-02-06 16:38:08 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 18:31:49 UTC) #27
Message was sent while issue was closed.
Committed patchset #11 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/527310a8c856c31a016c8f9c9ddb...

Powered by Google App Engine
This is Rietveld 408576698