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

Unified Diff: chrome/browser/android/compositor/layer/toolbar_layer.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 years, 1 month 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 | « cc/trees/layer_tree_impl_unittest.cc ('k') | chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/layer/toolbar_layer.cc
diff --git a/chrome/browser/android/compositor/layer/toolbar_layer.cc b/chrome/browser/android/compositor/layer/toolbar_layer.cc
index 37cedf4a753c2886a1bb36df2843e89c02c905f1..0efb27fa761c9ed2383118fede67d3b394154d80 100644
--- a/chrome/browser/android/compositor/layer/toolbar_layer.cc
+++ b/chrome/browser/android/compositor/layer/toolbar_layer.cc
@@ -42,7 +42,8 @@ void ToolbarLayer::PushResource(
layer_->SetBounds(size);
toolbar_background_layer_->SetBounds(resource->padding.size());
- toolbar_background_layer_->SetPosition(resource->padding.origin());
+ toolbar_background_layer_->SetPosition(
+ gfx::PointF(resource->padding.origin()));
toolbar_background_layer_->SetBackgroundColor(toolbar_background_color);
bitmap_layer_->SetUIResourceId(resource->ui_resource->id());
« no previous file with comments | « cc/trees/layer_tree_impl_unittest.cc ('k') | chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698