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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 1024633002: cc: Keep tilings texture size in sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix broken test Created 5 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
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 d384ac7eadcbe97cbeb9d6ede8abb1ac1ecce83a..5e54fc22309f143626b8f866c688aa53f82b9405 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -8131,8 +8131,10 @@ TEST_F(LayerTreeHostImplTest, GetPictureLayerImplPairs) {
gfx::Size(10, 10), gfx::Size(10, 10)));
Region empty_invalidation;
const PictureLayerTilingSet* null_tiling_set = nullptr;
- layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set);
- nondraw_layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set);
+ layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set,
+ host_impl_->device_viewport_size());
+ nondraw_layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set,
+ host_impl_->device_viewport_size());
layer->AddChild(nondraw_layer.Pass());
host_impl_->pending_tree()->SetRootLayer(layer.Pass());
@@ -8249,8 +8251,10 @@ TEST_F(LayerTreeHostImplTest, GetPictureLayerImplPairsWithNonRSLLMembers) {
gfx::Size(10, 10), gfx::Size(10, 10)));
Region empty_invalidation;
const PictureLayerTilingSet* null_tiling_set = nullptr;
- layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set);
- nondraw_layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set);
+ layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set,
+ host_impl_->device_viewport_size());
+ nondraw_layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set,
+ host_impl_->device_viewport_size());
layer->AddChild(nondraw_layer.Pass());
host_impl_->pending_tree()->SetRootLayer(layer.Pass());

Powered by Google App Engine
This is Rietveld 408576698