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

Issue 2833773005: Pause drawing webvr when the App button is pressed (Closed)

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

Description

Pause drawing webvr when the App button is pressed Clicking the App button toggles between pausing and resuming webvr drawing. This is the first step to crbug.com/713377. We still need to figure out how to properly handle app button clicks from WebVr presentation mode. This CL mainly has all the plumbing required for the UiSceneManager to handle the clicks. This CL declares a VrBrowserInterface that VrGLThread implements. VrShellLGl gets this interface and calls functions on it which has the PostTask/binding logic. Future-work: do the same for calls from VrShell -> Gl thread (VrUiInterface). BUG=713377 Review-Url: https://codereview.chromium.org/2833773005 Cr-Commit-Position: refs/heads/master@{#469138} Committed: https://chromium.googlesource.com/chromium/src/+/847ddc166e042a5e929ac16c9327dc3e02cba21c

Patch Set 1 #

Patch Set 2 : nit #

Total comments: 8

Patch Set 3 : Move pause logic out of vr_shell_gl #

Patch Set 4 : Add unittest + cleanup #

Total comments: 5

Patch Set 5 : refactor #

Total comments: 27

Patch Set 6 : address review comments #

Patch Set 7 : remove unused header #

Total comments: 6

Patch Set 8 : make UiBrowserInterface a raw ptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -65 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_interface.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_interface.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.h View 1 2 3 4 5 6 7 4 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -2 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_browser_interface.h View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.h View 1 2 3 4 5 6 7 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.cc View 1 2 3 4 5 6 7 2 chunks +56 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 4 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -17 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 3 4 5 6 7 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 5 6 7 8 chunks +16 lines, -31 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
ymalik
PTAL :)
3 years, 8 months ago (2017-04-21 19:39:58 UTC) #2
bshe
https://codereview.chromium.org/2833773005/diff/20001/chrome/browser/android/vr_shell/ui_scene.h File chrome/browser/android/vr_shell/ui_scene.h (right): https://codereview.chromium.org/2833773005/diff/20001/chrome/browser/android/vr_shell/ui_scene.h#newcode68 chrome/browser/android/vr_shell/ui_scene.h:68: void SetWebVrRenderingEnabled(bool); nit: bool enabled https://codereview.chromium.org/2833773005/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): ...
3 years, 8 months ago (2017-04-21 21:08:42 UTC) #3
cjgrant
On 2017/04/21 21:08:42, bshe wrote: > https://codereview.chromium.org/2833773005/diff/20001/chrome/browser/android/vr_shell/ui_scene.h > File chrome/browser/android/vr_shell/ui_scene.h (right): > > https://codereview.chromium.org/2833773005/diff/20001/chrome/browser/android/vr_shell/ui_scene.h#newcode68 > ...
3 years, 8 months ago (2017-04-21 21:36:16 UTC) #4
bsheedy
This should be unittestable, right? If so, could you add some? Might also want to ...
3 years, 8 months ago (2017-04-21 21:44:30 UTC) #5
cjgrant
On 2017/04/21 21:44:30, bsheedy wrote: > This should be unittestable, right? If so, could you ...
3 years, 8 months ago (2017-04-24 14:12:38 UTC) #6
bsheedy
On 2017/04/24 14:12:38, cjgrant wrote: > On 2017/04/21 21:44:30, bsheedy wrote: > > This should ...
3 years, 8 months ago (2017-04-24 16:42:08 UTC) #7
ymalik
On 2017/04/24 16:42:08, bsheedy wrote: > On 2017/04/24 14:12:38, cjgrant wrote: > > On 2017/04/21 ...
3 years, 7 months ago (2017-04-28 00:10:11 UTC) #9
ymalik
@cjgrant, @bshe PTAL. I have refactored post tasks to the main thread from the gl ...
3 years, 7 months ago (2017-04-28 00:12:04 UTC) #10
cjgrant
+mthiesse
3 years, 7 months ago (2017-04-28 18:12:08 UTC) #13
cjgrant
An initial high-level comment: This CL does clean up the bind calls, for sure. But ...
3 years, 7 months ago (2017-04-28 18:21:06 UTC) #14
cjgrant
https://codereview.chromium.org/2833773005/diff/60001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2833773005/diff/60001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode72 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:72: std::unique_ptr<MockVrThreadEnvoy> envoy = A scene manager test base class ...
3 years, 7 months ago (2017-04-28 18:25:23 UTC) #15
ymalik
On 2017/04/28 18:21:06, cjgrant wrote: > An initial high-level comment: This CL does clean up ...
3 years, 7 months ago (2017-05-02 17:43:45 UTC) #16
ymalik
https://codereview.chromium.org/2833773005/diff/60001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2833773005/diff/60001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode72 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:72: std::unique_ptr<MockVrThreadEnvoy> envoy = On 2017/04/28 18:25:23, cjgrant wrote: > ...
3 years, 7 months ago (2017-05-02 17:46:00 UTC) #18
cjgrant
https://codereview.chromium.org/2833773005/diff/80001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2833773005/diff/80001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode15 chrome/browser/android/vr_shell/ui_scene_manager.cc:15: #include "chrome/browser/android/vr_shell/vr_gl_thread.h" Is the thread header needed? https://codereview.chromium.org/2833773005/diff/80001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode41 chrome/browser/android/vr_shell/ui_scene_manager.cc:41: ...
3 years, 7 months ago (2017-05-02 18:07:06 UTC) #19
ymalik
@cjgrant ptal :) https://codereview.chromium.org/2833773005/diff/80001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2833773005/diff/80001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode15 chrome/browser/android/vr_shell/ui_scene_manager.cc:15: #include "chrome/browser/android/vr_shell/vr_gl_thread.h" On 2017/05/02 18:07:05, cjgrant ...
3 years, 7 months ago (2017-05-02 20:28:41 UTC) #20
cjgrant
lgtm lgtm pending the latest test comment. https://codereview.chromium.org/2833773005/diff/80001/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2833773005/diff/80001/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode498 chrome/browser/android/vr_shell/vr_shell_gl.cc:498: weak_browser_interface_->GvrDelegateReady(); On ...
3 years, 7 months ago (2017-05-03 14:40:38 UTC) #21
mthiesse
lgtm https://codereview.chromium.org/2833773005/diff/120001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2833773005/diff/120001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode195 chrome/browser/android/vr_shell/ui_scene_manager.cc:195: browser_->OnContentPaused(content_rendering_enabled_); Need to check that this weak ptr ...
3 years, 7 months ago (2017-05-03 16:12:04 UTC) #22
ymalik
https://codereview.chromium.org/2833773005/diff/120001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2833773005/diff/120001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode195 chrome/browser/android/vr_shell/ui_scene_manager.cc:195: browser_->OnContentPaused(content_rendering_enabled_); On 2017/05/03 16:12:03, mthiesse wrote: > Need to ...
3 years, 7 months ago (2017-05-03 20:26:38 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/2833773005/140001
3 years, 7 months ago (2017-05-03 20:27:28 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 21:44:07 UTC) #29
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/847ddc166e042a5e929ac16c9327...

Powered by Google App Engine
This is Rietveld 408576698