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

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: address vmp's comments 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..7405933889678e426444ff1d1024c42342fc66fd 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -8131,7 +8131,10 @@ TEST_F(LayerTreeHostImplTest, GetPictureLayerImplPairs) {
gfx::Size(10, 10), gfx::Size(10, 10)));
Region empty_invalidation;
const PictureLayerTilingSet* null_tiling_set = nullptr;
+ layer->set_gpu_raster_max_texture_size(host_impl_->device_viewport_size());
layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set);
+ nondraw_layer->set_gpu_raster_max_texture_size(
+ host_impl_->device_viewport_size());
nondraw_layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set);
layer->AddChild(nondraw_layer.Pass());
@@ -8249,7 +8252,10 @@ TEST_F(LayerTreeHostImplTest, GetPictureLayerImplPairsWithNonRSLLMembers) {
gfx::Size(10, 10), gfx::Size(10, 10)));
Region empty_invalidation;
const PictureLayerTilingSet* null_tiling_set = nullptr;
+ layer->set_gpu_raster_max_texture_size(host_impl_->device_viewport_size());
layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set);
+ nondraw_layer->set_gpu_raster_max_texture_size(
+ host_impl_->device_viewport_size());
nondraw_layer->UpdateRasterSource(pile, &empty_invalidation, null_tiling_set);
layer->AddChild(nondraw_layer.Pass());

Powered by Google App Engine
This is Rietveld 408576698