Chromium Code Reviews| Index: chrome/browser/android/vr_shell/vr_shell_gl.cc |
| diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.cc b/chrome/browser/android/vr_shell/vr_shell_gl.cc |
| index 05a6c98fdd8852cc1aff038d50e06eef49145280..410dce5771f93f555d14410639237f5e3ac108ae 100644 |
| --- a/chrome/browser/android/vr_shell/vr_shell_gl.cc |
| +++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc |
| @@ -660,8 +660,11 @@ void VrShellGl::HandleControllerAppButtonActivity( |
| } |
| } |
| if (direction == UiInterface::NONE) { |
| + content_paused_ = !content_paused_; |
|
bshe
2017/04/21 21:08:42
perhaps rename to content_rendering_enabled_ to ma
ymalik
2017/04/28 00:12:04
Done.
|
| + scene_->SetWebVrRenderingEnabled(!content_paused_); |
| main_thread_task_runner_->PostTask( |
| - FROM_HERE, base::Bind(&VrShell::AppButtonPressed, weak_vr_shell_)); |
| + FROM_HERE, base::Bind(&VrShell::AppButtonPressed, weak_vr_shell_, |
| + content_paused_)); |
| } |
| } |
| } |