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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_gl.cc

Issue 2833773005: Pause drawing webvr when the App button is pressed (Closed)
Patch Set: nit Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_));
}
}
}
« chrome/browser/android/vr_shell/vr_shell.cc ('K') | « chrome/browser/android/vr_shell/vr_shell_gl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698