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

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: 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/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index c87c36b780ba0f07a8008cf00a459ca8e131013d..ccf1dbee46f699dd1f743d384b7a3637d64e1cb6 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);
}

Powered by Google App Engine
This is Rietveld 408576698