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

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

Issue 2914623003: [VrShell] Centralize color handling and enable close button on fullscreen (Closed)
Patch Set: clean up after rebase Created 3 years, 7 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 deb62e5d0a953ba8eae7388de54ab9f7686036b7..4c778ecaf20670052ad641c13335ca6c18d5b4f8 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc
@@ -1131,7 +1131,7 @@ void VrShellGl::DrawWorldElements(const vr::Mat4f& head_pose) {
glEnable(GL_DEPTH_TEST);
glDepthMask(GL_TRUE);
- const SkColor backgroundColor = scene_->GetBackgroundColor();
+ const SkColor backgroundColor = scene_->GetWorldBackgroundColor();
glClearColor(SkColorGetR(backgroundColor) / 255.0,
SkColorGetG(backgroundColor) / 255.0,
SkColorGetB(backgroundColor) / 255.0,

Powered by Google App Engine
This is Rietveld 408576698