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

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

Issue 2955483003: Show splash screen when entering VR from a deep-link (Closed)
Patch Set: . Created 3 years, 6 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 4a14fa187377c8d12eaf9dc2cdb4c2a2d9b201ef..b4094616201aa9359913f49d945e2f9efd155c97 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc
@@ -1175,7 +1175,9 @@ void VrShellGl::DrawWorldElements(const gfx::Transform& head_pose) {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}
std::vector<const UiElement*> elements = scene_->GetWorldElements();
- const bool draw_reticle = !(scene_->is_exiting() || ShouldDrawWebVr());
+ const bool draw_reticle =
+ !(scene_->is_exiting() || scene_->showing_splash_screen() ||
+ ShouldDrawWebVr());
DrawUiView(head_pose, elements, render_size_primary_,
kViewportListPrimaryOffset, draw_reticle);
}

Powered by Google App Engine
This is Rietveld 408576698