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

Unified Diff: cc/resources/picture_layer_tiling_unittest.cc

Issue 12967018: cc: Avoid pointless gfx::Point/Size contructors when making Rects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RectFs as well Created 7 years, 9 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/resources/picture_layer_tiling_set_unittest.cc ('k') | cc/resources/resource_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_unittest.cc
diff --git a/cc/resources/picture_layer_tiling_unittest.cc b/cc/resources/picture_layer_tiling_unittest.cc
index 5af03ad28f26988a93c4b8b80b7e39dd9a0bff6c..fd699266082a99b0cef27b4ad8b9c4300c22cdaa 100644
--- a/cc/resources/picture_layer_tiling_unittest.cc
+++ b/cc/resources/picture_layer_tiling_unittest.cc
@@ -157,9 +157,9 @@ TEST_F(PictureLayerTilingIteratorTest, NonIntersectingRect) {
TEST_F(PictureLayerTilingIteratorTest, LayerEdgeTextureCoordinates) {
Initialize(gfx::Size(300, 300), 1.0f, gfx::Size(256, 256));
// All of these sizes are 256x256, scaled and ceiled.
- VerifyTilesExactlyCoverRect(1.0f, gfx::Rect(gfx::Size(256, 256)));
- VerifyTilesExactlyCoverRect(0.8f, gfx::Rect(gfx::Size(205, 205)));
- VerifyTilesExactlyCoverRect(1.2f, gfx::Rect(gfx::Size(308, 308)));
+ VerifyTilesExactlyCoverRect(1.0f, gfx::Rect(0, 0, 256, 256));
+ VerifyTilesExactlyCoverRect(0.8f, gfx::Rect(0, 0, 205, 205));
+ VerifyTilesExactlyCoverRect(1.2f, gfx::Rect(0, 0, 308, 308));
}
TEST_F(PictureLayerTilingIteratorTest, NonContainedDestRect) {
« no previous file with comments | « cc/resources/picture_layer_tiling_set_unittest.cc ('k') | cc/resources/resource_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698