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

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

Issue 2906423002: [vr] Migrate from vr::Colorf to SkColor (Closed)
Patch Set: 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/ui_scene_manager.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene_manager.cc b/chrome/browser/android/vr_shell/ui_scene_manager.cc
index 253dec3f02ba02f2190a44d05ba949fb09629607..e60e72836692f68ec760833d0e552f9181ca2877 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
@@ -361,8 +361,7 @@ void UiSceneManager::UpdateBackgroundColor() {
floor_->set_center_color(color_scheme().floor);
floor_->set_edge_color(color_scheme().horizon);
floor_grid_->set_center_color(color_scheme().floor_grid);
- vr::Colorf floor_grid_edge_color = color_scheme().floor_grid;
- floor_grid_edge_color.a = 0.0;
+ SkColor floor_grid_edge_color = SkColorSetA(color_scheme().floor_grid, 0);
floor_grid_->set_edge_color(floor_grid_edge_color);
}
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('k') | chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698