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

Issue 2774933003: Fixes WebVR presentation from within VRShell. (Closed)

Created:
3 years, 9 months ago by tiborg
Modified:
3 years, 8 months ago
Reviewers:
mthiesse, bajones
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes WebVR presentation from within VRShell. - VrShellDelegate delays the call of a successfull request present callback until the GL thread is ready. - By doing so, VrShellDelegate is able to pass the VRSubmitFrameClient to the GL thread no matter if the Gl thread was ready at the time of the request. - Previously, the VRSubmitFrameClient was only passed correctly if the GL thread was not ready at the time of the request. Thus, WebVR presentation crashed from within VRShell. BUG=703324 Review-Url: https://codereview.chromium.org/2774933003 Cr-Commit-Position: refs/heads/master@{#462511} Committed: https://chromium.googlesource.com/chromium/src/+/18732d771d2b10a39707d4bdda57e3a367dac55d

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rebased on ToT, nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -15 lines) Patch
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.h View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.cc View 1 5 chunks +24 lines, -7 lines 0 comments Download
M device/vr/android/gvr/gvr_delegate.h View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 14 (6 generated)
tiborg
Please take a look.
3 years, 9 months ago (2017-03-24 21:03:27 UTC) #2
tiborg
https://codereview.chromium.org/2774933003/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2774933003/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode415 chrome/browser/android/vr_shell/vr_shell.cc:415: delegate_provider_->SetPresentingDelegate(this, gvr_api_); It would be helpful if this call ...
3 years, 9 months ago (2017-03-24 21:58:51 UTC) #3
tiborg
bajones@chromium.org: Please take a look.
3 years, 9 months ago (2017-03-24 22:12:15 UTC) #5
mthiesse
lgtm https://codereview.chromium.org/2774933003/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2774933003/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode415 chrome/browser/android/vr_shell/vr_shell.cc:415: delegate_provider_->SetPresentingDelegate(this, gvr_api_); On 2017/03/24 21:58:51, tiborg wrote: > ...
3 years, 8 months ago (2017-03-30 15:29:46 UTC) #6
tiborg
https://codereview.chromium.org/2774933003/diff/1/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2774933003/diff/1/chrome/browser/android/vr_shell/vr_shell.cc#newcode415 chrome/browser/android/vr_shell/vr_shell.cc:415: delegate_provider_->SetPresentingDelegate(this, gvr_api_); On 2017/03/30 15:29:46, mthiesse wrote: > On ...
3 years, 8 months ago (2017-03-30 22:19:57 UTC) #7
bajones
lgtm
3 years, 8 months ago (2017-04-06 15:14:44 UTC) #8
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/2774933003/20001
3 years, 8 months ago (2017-04-06 15:34:53 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 16:52:58 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/18732d771d2b10a39707d4bdda57...

Powered by Google App Engine
This is Rietveld 408576698