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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1314943008: cc: Remove implicit conversions from Rect to RectF in src/cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rectfconvert-cc: rebase-and-sandwich-strategy 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
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 8a4bba0fed034f11756981f6a1e532929178bac7..1e6f161eb4eec7f31908d2a49ac32f38df51b805 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1378,8 +1378,8 @@ void LayerTreeHostImpl::SetExternalDrawConstraints(
if (transform_for_tile_priority.GetInverse(&screen_to_view)) {
// Convert from screen space to view space.
viewport_rect_for_tile_priority_in_view_space =
- gfx::ToEnclosingRect(MathUtil::ProjectClippedRect(
- screen_to_view, viewport_rect_for_tile_priority));
+ MathUtil::ProjectEnclosingClippedRect(
+ screen_to_view, viewport_rect_for_tile_priority);
}
}
@@ -2808,8 +2808,7 @@ float LayerTreeHostImpl::DeviceSpaceDistanceToLayer(
gfx::Rect layer_impl_bounds(layer_impl->bounds());
gfx::RectF device_viewport_layer_impl_bounds = MathUtil::MapClippedRect(
- layer_impl->screen_space_transform(),
- layer_impl_bounds);
+ layer_impl->screen_space_transform(), gfx::RectF(layer_impl_bounds));
return device_viewport_layer_impl_bounds.ManhattanDistanceToPoint(
device_viewport_point);
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698