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

Unified Diff: cc/layers/tiled_layer_impl_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/layers/tiled_layer.cc ('k') | cc/layers/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/tiled_layer_impl_unittest.cc
diff --git a/cc/layers/tiled_layer_impl_unittest.cc b/cc/layers/tiled_layer_impl_unittest.cc
index e0f4da5aea933b1500bd4f88fa7368b6a204a4a6..5e1a047a726c55d75a23e884995d6ac9a7ff93a1 100644
--- a/cc/layers/tiled_layer_impl_unittest.cc
+++ b/cc/layers/tiled_layer_impl_unittest.cc
@@ -36,7 +36,7 @@ class TiledLayerImplTest : public testing::Test {
layer->SetTilingData(*tiler);
layer->set_skips_draw(false);
layer->draw_properties().visible_content_rect =
- gfx::Rect(gfx::Point(), layer_size);
+ gfx::Rect(layer_size);
layer->draw_properties().opacity = 1;
layer->SetBounds(layer_size);
layer->SetContentBounds(layer_size);
@@ -110,7 +110,7 @@ TEST_F(TiledLayerImplTest, EmptyQuadList) {
scoped_ptr<TiledLayerImpl> layer =
CreateLayer(tile_size, layer_size, LayerTilingData::NO_BORDER_TEXELS);
- gfx::Rect outside_bounds(gfx::Point(-100, -100), gfx::Size(50, 50));
+ gfx::Rect outside_bounds(-100, -100, 50, 50);
layer->draw_properties().visible_content_rect = outside_bounds;
MockQuadCuller quad_culler;
@@ -191,9 +191,8 @@ class TiledLayerImplBorderTest : public TiledLayerImplTest {
gfx::Size(100, 100),
layer_size,
borders,
- gfx::Rect(gfx::Point(), layer_size));
- LayerTestCommon::VerifyQuadsExactlyCoverRect(
- quads, gfx::Rect(gfx::Point(), layer_size));
+ gfx::Rect(layer_size));
+ LayerTestCommon::VerifyQuadsExactlyCoverRect(quads, gfx::Rect(layer_size));
}
void CoverageVisibleRectIntersectsTiles(
@@ -246,7 +245,7 @@ TEST_F(TiledLayerImplTest, TextureInfoForLayerNoBorders) {
tile_size,
layer_size,
LayerTilingData::NO_BORDER_TEXELS,
- gfx::Rect(gfx::Point(), layer_size));
+ gfx::Rect(layer_size));
for (size_t i = 0; i < quads.size(); ++i) {
const TileDrawQuad* quad = TileDrawQuad::MaterialCast(quads[i]);
« no previous file with comments | « cc/layers/tiled_layer.cc ('k') | cc/layers/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698