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

Unified Diff: cc/layers/tiled_layer_impl_unittest.cc

Issue 389973004: cc: Give TilingData back a Size instead of a Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tilingsize: comments Created 6 years, 5 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/resources/layer_tiling_data.h » ('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 a9526368463ffc076fa8ba5abe277d6f4737f170..e5eedbfc67b505937753e0f4146a6695a5892b75 100644
--- a/cc/layers/tiled_layer_impl_unittest.cc
+++ b/cc/layers/tiled_layer_impl_unittest.cc
@@ -29,7 +29,7 @@ class TiledLayerImplTest : public testing::Test {
TiledLayerImpl::Create(host_impl_.active_tree(), 1);
scoped_ptr<LayerTilingData> tiler =
LayerTilingData::Create(tile_size, border_texels);
- tiler->SetTilingRect(gfx::Rect(layer_size));
+ tiler->SetTilingSize(layer_size);
layer->SetTilingData(*tiler);
layer->set_skips_draw(false);
layer->draw_properties().visible_content_rect =
@@ -335,7 +335,7 @@ TEST_F(TiledLayerImplTest, Occlusion) {
scoped_ptr<LayerTilingData> tiler =
LayerTilingData::Create(tile_size, LayerTilingData::NO_BORDER_TEXELS);
- tiler->SetTilingRect(gfx::Rect(layer_bounds));
+ tiler->SetTilingSize(layer_bounds);
tiled_layer->SetTilingData(*tiler);
ResourceProvider::ResourceId resource_id = 1;
« no previous file with comments | « cc/layers/tiled_layer.cc ('k') | cc/resources/layer_tiling_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698