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

Unified Diff: cc/trees/layer_tree_impl.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-gfx: . Created 5 years, 3 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: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 90efa38e6769fdadbd2d5eb4ec06ad52038f73de..1f909091e1d8caef9ba089c8c59382aa9b6e2f02 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1484,8 +1484,8 @@ static ViewportSelectionBound ComputeViewportSelectionBound(
if (!layer || layer_bound.type == SELECTION_BOUND_EMPTY)
return viewport_bound;
- gfx::PointF layer_top = layer_bound.edge_top;
- gfx::PointF layer_bottom = layer_bound.edge_bottom;
+ auto layer_top = gfx::PointF(layer_bound.edge_top);
+ auto layer_bottom = gfx::PointF(layer_bound.edge_bottom);
bool clipped = false;
gfx::PointF screen_top =

Powered by Google App Engine
This is Rietveld 408576698