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

Unified Diff: cc/tiles/picture_layer_tiling_unittest.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/tiles/picture_layer_tiling_set_unittest.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/picture_layer_tiling_unittest.cc
diff --git a/cc/tiles/picture_layer_tiling_unittest.cc b/cc/tiles/picture_layer_tiling_unittest.cc
index a55f6258e25cdc89cbe91b02baa4d4ca86f7c194..ec3b87024d78931c0df77bd8fef84c3b76646fd1 100644
--- a/cc/tiles/picture_layer_tiling_unittest.cc
+++ b/cc/tiles/picture_layer_tiling_unittest.cc
@@ -31,9 +31,8 @@ static gfx::Rect ViewportInLayerSpace(
if (!transform.GetInverse(&inverse))
return gfx::Rect();
- gfx::RectF viewport_in_layer_space = MathUtil::ProjectClippedRect(
- inverse, gfx::RectF(gfx::Point(0, 0), device_viewport));
- return ToEnclosingRect(viewport_in_layer_space);
+ return MathUtil::ProjectEnclosingClippedRect(inverse,
+ gfx::Rect(device_viewport));
}
class TestablePictureLayerTiling : public PictureLayerTiling {
@@ -504,7 +503,7 @@ TEST_F(PictureLayerTilingIteratorTest, IteratorCoversLayerBoundsBothScale) {
float scale = 6.7f;
gfx::Size bounds(800, 600);
- gfx::Rect full_rect(gfx::ToCeiledSize(gfx::ScaleSize(bounds, scale)));
+ gfx::Rect full_rect(gfx::ScaleToCeiledSize(bounds, scale));
Initialize(gfx::Size(256, 512), 5.2f, bounds);
VerifyTilesExactlyCoverRect(scale, full_rect);
VerifyTilesExactlyCoverRect(scale, gfx::Rect(2014, 1579, 867, 1033));
« no previous file with comments | « cc/tiles/picture_layer_tiling_set_unittest.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698