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

Issue 2711173002: Prevent browser crash resulting from misbehaving WebVR renderer requesting multiple VSyncs. (Closed)

Created:
3 years, 10 months ago by mthiesse
Modified:
3 years, 10 months ago
Reviewers:
bajones, dcheng
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, haraken, Aaron Boodman, feature-vr-reviews_chromium.org, blink-reviews, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent browser crash resulting from misbehaving WebVR renderer requesting multiple VSyncs. This also fixes a logic error, where if we have multiple rAF loops running for the same VrDisplay, we mistakenly fire off a VSync request for each rAF loop, when we should be sending only one at a time. BUG=695470 Review-Url: https://codereview.chromium.org/2711173002 Cr-Commit-Position: refs/heads/master@{#452711} Committed: https://chromium.googlesource.com/chromium/src/+/45c6392a896fefd5bdaef09d80920a55e1ea2ac4

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment #

Total comments: 8

Patch Set 3 : Address comments #

Patch Set 4 : nit #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -21 lines) Patch
M chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 3 chunks +11 lines, -4 lines 0 comments Download
M device/vr/vr_service.mojom View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 4 chunks +16 lines, -13 lines 0 comments Download

Messages

Total messages: 36 (12 generated)
mthiesse
dcheng, please review mojom changes. bajones, please review the rest.
3 years, 10 months ago (2017-02-23 16:46:25 UTC) #2
bajones
https://codereview.chromium.org/2711173002/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2711173002/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode180 chrome/browser/android/vr_shell/vr_shell_gl.cc:180: device::mojom::VRVSyncProvider::Error::ERROR_TRY_AGAIN); Could you clarify this? If the VSyncProvider is ...
3 years, 10 months ago (2017-02-23 17:21:22 UTC) #5
mthiesse
https://codereview.chromium.org/2711173002/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2711173002/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode180 chrome/browser/android/vr_shell/vr_shell_gl.cc:180: device::mojom::VRVSyncProvider::Error::ERROR_TRY_AGAIN); On 2017/02/23 17:21:22, bajones wrote: > Could you ...
3 years, 10 months ago (2017-02-23 18:11:59 UTC) #6
bajones
lgtm
3 years, 10 months ago (2017-02-23 18:35:56 UTC) #7
dcheng
https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom File device/vr/vr_service.mojom (right): https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom#newcode101 device/vr/vr_service.mojom:101: ERROR_NONE, Nit: Error => Status { SUCCESS, TRY_AGAIN }; ...
3 years, 10 months ago (2017-02-23 19:36:59 UTC) #8
mthiesse
https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom File device/vr/vr_service.mojom (right): https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom#newcode103 device/vr/vr_service.mojom:103: ERROR_BAD_REQUEST, On 2017/02/23 19:36:58, dcheng wrote: > I would ...
3 years, 10 months ago (2017-02-23 19:41:36 UTC) #9
dcheng
https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom File device/vr/vr_service.mojom (right): https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom#newcode103 device/vr/vr_service.mojom:103: ERROR_BAD_REQUEST, On 2017/02/23 19:41:35, mthiesse wrote: > On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 19:45:27 UTC) #10
dcheng
On 2017/02/23 19:45:27, dcheng wrote: > https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom > File device/vr/vr_service.mojom (right): > > https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom#newcode103 > ...
3 years, 10 months ago (2017-02-23 19:47:18 UTC) #11
mthiesse
On 2017/02/23 19:47:18, dcheng wrote: > On 2017/02/23 19:45:27, dcheng wrote: > > > https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom ...
3 years, 10 months ago (2017-02-23 19:50:07 UTC) #12
dcheng
On 2017/02/23 19:50:07, mthiesse wrote: > On 2017/02/23 19:47:18, dcheng wrote: > > On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 19:51:22 UTC) #13
dcheng
On 2017/02/23 19:51:22, dcheng wrote: > On 2017/02/23 19:50:07, mthiesse wrote: > > On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 19:52:08 UTC) #14
mthiesse
On 2017/02/23 19:41:36, mthiesse wrote: > https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom > File device/vr/vr_service.mojom (right): > > https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom#newcode103 > ...
3 years, 10 months ago (2017-02-23 19:53:22 UTC) #15
mthiesse
The browser crash is from a DCHECK, so it won't be hit in release builds ...
3 years, 10 months ago (2017-02-23 19:54:54 UTC) #16
dcheng
On 2017/02/23 19:53:22, mthiesse wrote: > On 2017/02/23 19:41:36, mthiesse wrote: > > > https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom ...
3 years, 10 months ago (2017-02-23 19:58:16 UTC) #17
mthiesse
On 2017/02/23 19:58:16, dcheng wrote: > On 2017/02/23 19:53:22, mthiesse wrote: > > On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 20:05:03 UTC) #18
dcheng
On 2017/02/23 20:05:03, mthiesse wrote: > On 2017/02/23 19:58:16, dcheng wrote: > > On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 20:39:14 UTC) #19
mthiesse
https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom File device/vr/vr_service.mojom (right): https://codereview.chromium.org/2711173002/diff/20001/device/vr/vr_service.mojom#newcode101 device/vr/vr_service.mojom:101: ERROR_NONE, On 2017/02/23 19:36:58, dcheng wrote: > Nit: Error ...
3 years, 10 months ago (2017-02-23 20:39:58 UTC) #20
mthiesse
On 2017/02/23 20:39:14, dcheng wrote: > On 2017/02/23 20:05:03, mthiesse wrote: > > On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 20:41:26 UTC) #21
mthiesse
On 2017/02/23 20:41:26, mthiesse wrote: > On 2017/02/23 20:39:14, dcheng wrote: > > On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 20:43:28 UTC) #22
dcheng
LGTM Perhaps clarify the description to cover the logic fixes (outside of the crash fix) ...
3 years, 10 months ago (2017-02-23 21:20:02 UTC) #23
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/2711173002/60001
3 years, 10 months ago (2017-02-23 21:27:19 UTC) #28
commit-bot: I haz the power
Failed to apply patch for chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-23 22:59:35 UTC) #30
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/2711173002/80001
3 years, 10 months ago (2017-02-23 23:47:37 UTC) #33
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 01:46:56 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/45c6392a896fefd5bdaef09d8092...

Powered by Google App Engine
This is Rietveld 408576698