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

Unified Diff: cc/test/layer_tree_test.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-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
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index e2d19b0f43e0a21763dc69334158430bb4f8f582..5d37c736093402d30142ca771888ffc3dc4548d2 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -803,8 +803,8 @@ void LayerTreeTest::SetupTree() {
}
gfx::Size root_bounds = layer_tree_host_->root_layer()->bounds();
- gfx::Size device_root_bounds = gfx::ToCeiledSize(
- gfx::ScaleSize(root_bounds, layer_tree_host_->device_scale_factor()));
+ gfx::Size device_root_bounds = gfx::ScaleToCeiledSize(
+ root_bounds, layer_tree_host_->device_scale_factor());
layer_tree_host_->SetViewportSize(device_root_bounds);
}
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698