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

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

Issue 2833773005: Pause drawing webvr when the App button is pressed (Closed)
Patch Set: refactor 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/ui_scene.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene.cc b/chrome/browser/android/vr_shell/ui_scene.cc
index 6744fe61a04f0dfc4465c20d992ad979fe459000..7d1962cf19ae05aed1b7f8a5b3dad03f41afc6e9 100644
--- a/chrome/browser/android/vr_shell/ui_scene.cc
+++ b/chrome/browser/android/vr_shell/ui_scene.cc
@@ -158,6 +158,10 @@ bool UiScene::GetWebVrRenderingEnabled() const {
return webvr_rendering_enabled_;
}
+void UiScene::SetWebVrRenderingEnabled(bool enabled) {
+ webvr_rendering_enabled_ = enabled;
+}
+
const std::vector<std::unique_ptr<UiElement>>& UiScene::GetUiElements() const {
return ui_elements_;
}

Powered by Google App Engine
This is Rietveld 408576698