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

Unified Diff: cc/tiles/picture_layer_tiling_unittest.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.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 dda369e0ad90202a075fec73aaa1bcca1298a459..1c0d4d9623fa348aa9bebba342dc708f542756c1 100644
--- a/cc/tiles/picture_layer_tiling_unittest.cc
+++ b/cc/tiles/picture_layer_tiling_unittest.cc
@@ -807,7 +807,7 @@ TEST(PictureLayerTilingTest, ViewportDistanceWithScale) {
settings);
tiling->set_resolution(HIGH_RESOLUTION);
gfx::Rect viewport_in_content_space =
- gfx::ToEnclosedRect(gfx::ScaleRect(viewport, 0.25f));
+ gfx::ScaleToEnclosedRect(viewport, 0.25f);
tiling->ComputeTilePriorityRects(viewport, 1.f, 1.0, Occlusion());
auto prioritized_tiles = tiling->UpdateAndGetAllPrioritizedTilesForTesting();
@@ -882,8 +882,7 @@ TEST(PictureLayerTilingTest, ViewportDistanceWithScale) {
// Move the viewport down 40 pixels.
viewport = gfx::Rect(0, 40, 100, 100);
- viewport_in_content_space =
- gfx::ToEnclosedRect(gfx::ScaleRect(viewport, 0.25f));
+ viewport_in_content_space = gfx::ScaleToEnclosedRect(viewport, 0.25f);
gfx::Rect skewport = tiling->ComputeSkewport(2.0, viewport_in_content_space);
// Compute the soon border.
« no previous file with comments | « cc/tiles/picture_layer_tiling.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698