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

Unified Diff: cc/trees/layer_tree_host_common.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/tiles/picture_layer_tiling_unittest.cc ('k') | cc/trees/layer_tree_host_common_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_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 2ac9ef42fa731067545289fce3ed0cb012d1c1fa..4eb48b255fa77b459012f7c68fc55c67e16224d3 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -417,8 +417,8 @@ void UpdateAccumulatedSurfaceState(
DCHECK_IMPLIES(current_target->num_unclipped_descendants(),
current_draw_transform.IsIdentityOrTranslation());
- target_rect = gfx::ToEnclosingRect(
- MathUtil::MapClippedRect(current_draw_transform, target_rect));
+ target_rect =
+ MathUtil::MapEnclosingClippedRect(current_draw_transform, target_rect);
}
// It is an error to not reach |render_target|. If this happens, it means that
« no previous file with comments | « cc/tiles/picture_layer_tiling_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698