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

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

Issue 2911663002: [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 4845c90f9e9e21022f1f2de5301cdf72c04b6c76..c72eb522b53d60ecd1c52bdadbfb2912bce94997 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);
}

Powered by Google App Engine
This is Rietveld 408576698