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

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

Created:
3 years, 7 months ago by mthiesse
Modified:
3 years, 7 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3071
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-Original-Commit-Position: refs/heads/master@{#469804} Review-Url: https://codereview.chromium.org/2881233002 . Cr-Commit-Position: refs/branch-heads/3071@{#560} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} Committed: https://chromium.googlesource.com/chromium/src/+/cb20474507616ce33723dfb02723e952703f3d88

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -19 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java View 9 chunks +26 lines, -17 lines 0 comments Download
A chrome/test/data/android/webvr_instrumentation/html/test_presentation_locks_focus.html View 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/test/data/android/webvr_instrumentation/resources/webvr_boilerplate.js View 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 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
mthiesse
3 years, 7 months ago (2017-05-15 18:54:39 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
cb20474507616ce33723dfb02723e952703f3d88.

Powered by Google App Engine
This is Rietveld 408576698