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

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

Issue 2844313002: Add VR gradient and grid background to non-WebVR scene. (Closed)
Patch Set: 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..82984bb95adf91fac783b4d54b2c0c988c3b95bf 100644
--- a/chrome/browser/android/vr_shell/ui_scene.cc
+++ b/chrome/browser/android/vr_shell/ui_scene.cc
@@ -146,10 +146,18 @@ bool UiScene::HasVisibleHeadLockedElements() const {
return !GetHeadLockedElements().empty();
}
+void UiScene::SetBackgroundColor(const vr::Colorf& color) {
+ background_color_ = color;
+}
+
const vr::Colorf& UiScene::GetBackgroundColor() const {
return background_color_;
}
+void UiScene::SetBackgroundDistance(float distance) {
+ background_distance_ = distance;
+}
+
float UiScene::GetBackgroundDistance() const {
return background_distance_;
}

Powered by Google App Engine
This is Rietveld 408576698