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

Issue 2859533003: WebVR: lock focus while presenting to presenting window (Closed)

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

Description

WebVR: lock focus while presenting to presenting window This CL is kept intentionally simple for merging back to M59 to fix the regression, but hides some complexity. This won't violate the assumption of one VRDisplay having a VSync provider at a time because VrDisplayImpl::GetVRVSyncProvider drops requests from displays that aren't presenting while presentation is active. However, if a non-presenting VrDisplay actually gets focus while a different VrDisplay is presenting (possibly from directing the controller click to a different display) then that non-presenting VrDisplay will fail to get a VSync provider even after presentation ends because its focused state won't change and the original request will have failed. This means that a page with multiple VrDisplays will under certain degenerate cases fail to resume magic window mode after presenting until the focus changes again. BUG=710863 Review-Url: https://codereview.chromium.org/2859533003 Cr-Commit-Position: refs/heads/master@{#469804} Committed: https://chromium.googlesource.com/chromium/src/+/89079d08e53122fc1921517942e259ec1e674d2d

Patch Set 1 #

Patch Set 2 : Add comment #

Total comments: 2

Patch Set 3 : Add test + address comments #

Total comments: 4

Patch Set 4 : Update comment + fix comment line lengths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -26 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrTestBase.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java View 1 2 3 12 chunks +30 lines, -23 lines 0 comments Download
A chrome/test/data/android/webvr_instrumentation/html/test_presentation_locks_focus.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/test/data/android/webvr_instrumentation/resources/webvr_boilerplate.js View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
mthiesse
PTAL. Will add a test tomorrow before submitting but wanted to get some eyeballs on ...
3 years, 7 months ago (2017-05-02 23:17:36 UTC) #2
klausw
LGTM with nitpicks. Consider removing the first two files from this CL? The reformatting and ...
3 years, 7 months ago (2017-05-03 16:20:43 UTC) #3
mthiesse
Added test. PTAL bajones https://codereview.chromium.org/2859533003/diff/20001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2859533003/diff/20001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode562 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:562: if (!image_ref.Get() || !image_ref->IsTextureBacked()) { ...
3 years, 7 months ago (2017-05-04 17:29:01 UTC) #4
mthiesse
dtrainor@chromium.org: Please review javatest changes.
3 years, 7 months ago (2017-05-04 17:29:28 UTC) #6
mthiesse
dtrainor, would you like us to add an OWNERS file for the vr_shell javatests directory, ...
3 years, 7 months ago (2017-05-04 20:08:34 UTC) #7
bsheedy
https://codereview.chromium.org/2859533003/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java (right): https://codereview.chromium.org/2859533003/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java#newcode254 chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java:254: * Tests that Daydream controller clicks are registered as ...
3 years, 7 months ago (2017-05-04 20:17:46 UTC) #9
mthiesse
https://codereview.chromium.org/2859533003/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java (right): https://codereview.chromium.org/2859533003/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java#newcode254 chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java:254: * Tests that Daydream controller clicks are registered as ...
3 years, 7 months ago (2017-05-04 20:24:20 UTC) #10
bajones
lgtm
3 years, 7 months ago (2017-05-04 20:40:37 UTC) #11
David Trainor- moved to gerrit
javatests lgtm. Let me talk to some of the other owners and see if this ...
3 years, 7 months ago (2017-05-05 20:14:24 UTC) #13
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/2859533003/60001
3 years, 7 months ago (2017-05-05 20:19:15 UTC) #16
David Trainor- moved to gerrit
Do you have an owners file in your other vr_shell directory? If so you could ...
3 years, 7 months ago (2017-05-05 23:05:02 UTC) #17
David Trainor- moved to gerrit
On 2017/05/05 23:05:02, David Trainor-ping if over 24h wrote: > Do you have an owners ...
3 years, 7 months ago (2017-05-05 23:07:06 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 23:42:59 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/89079d08e53122fc1921517942e2...

Powered by Google App Engine
This is Rietveld 408576698