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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 235753002: cc: Give TilingData a Rect instead of a Size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Git cl format Created 6 years, 8 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/test/fake_picture_pile_impl.cc ('k') | cc/trees/quad_culler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 0fff5ffc332c261241c2f23a03188c0f65549013..93bc83106b434ba36079a756f89cd15fb272d59d 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -1538,7 +1538,7 @@ class DidDrawCheckLayer : public TiledLayerImpl {
scoped_ptr<LayerTilingData> tiler =
LayerTilingData::Create(gfx::Size(100, 100),
LayerTilingData::HAS_BORDER_TEXELS);
- tiler->SetBounds(content_bounds());
+ tiler->SetTilingRect(gfx::Rect(content_bounds()));
SetTilingData(*tiler.get());
}
@@ -1749,7 +1749,7 @@ class MissingTextureAnimatingLayer : public DidDrawCheckLayer {
scoped_ptr<LayerTilingData> tiling_data =
LayerTilingData::Create(gfx::Size(10, 10),
LayerTilingData::NO_BORDER_TEXELS);
- tiling_data->SetBounds(bounds());
+ tiling_data->SetTilingRect(gfx::Rect(bounds()));
SetTilingData(*tiling_data.get());
set_skips_draw(skips_draw);
if (!tile_missing) {
« no previous file with comments | « cc/test/fake_picture_pile_impl.cc ('k') | cc/trees/quad_culler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698