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

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

Issue 2698623007: Change how the VR reticle distance is determined. (Closed)
Patch Set: Change background distance multplier to 1.414; move Reload UI button out of the floor. Created 3 years, 10 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
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements.cc ('k') | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_scene.h
diff --git a/chrome/browser/android/vr_shell/ui_scene.h b/chrome/browser/android/vr_shell/ui_scene.h
index 1b1686f25792213d404326da71f191d3620e5cfa..3ef5eec10c8ec9b0231d7265660093f8392f299e 100644
--- a/chrome/browser/android/vr_shell/ui_scene.h
+++ b/chrome/browser/android/vr_shell/ui_scene.h
@@ -71,9 +71,8 @@ class UiScene {
ContentRectangle* GetUiElementById(int element_id);
- ContentRectangle* GetContentQuad();
-
const Colorf& GetBackgroundColor();
+ float GetBackgroundDistance();
private:
void ApplyRecursiveTransforms(const ContentRectangle& element,
@@ -85,6 +84,7 @@ class UiScene {
std::vector<std::unique_ptr<ContentRectangle>> ui_elements_;
ContentRectangle* content_element_ = nullptr;
Colorf background_color_ = {0.1f, 0.1f, 0.1f, 1.0f};
+ float background_distance_ = 10.0f;
DISALLOW_COPY_AND_ASSIGN(UiScene);
};
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements.cc ('k') | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698