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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 690063002: cc: Do not ignore layers without valid priorities during eviction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: CreateWith{Pile => RasterSource} Created 6 years, 1 month 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/trees/layer_tree_host_impl.cc ('k') | no next file » | 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 2a0bc32e9fb8244bbb2d56f3967d894daaae7131..2e794a9fe258f7bea9435b9dfb8d824447428773 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -7587,7 +7587,7 @@ TEST_F(LayerTreeHostImplTest, GetPictureLayerImplPairs) {
LayerImpl* pending_layer = pending_tree->root_layer();
std::vector<PictureLayerImpl::Pair> layer_pairs;
- host_impl_->GetPictureLayerImplPairs(&layer_pairs);
+ host_impl_->GetPictureLayerImplPairs(&layer_pairs, true);
EXPECT_EQ(1u, layer_pairs.size());
EXPECT_EQ(pending_layer, layer_pairs[0].pending);
EXPECT_EQ(nullptr, layer_pairs[0].active);
@@ -7604,7 +7604,7 @@ TEST_F(LayerTreeHostImplTest, GetPictureLayerImplPairs) {
host_impl_->CreatePendingTree();
layer_pairs.clear();
- host_impl_->GetPictureLayerImplPairs(&layer_pairs);
+ host_impl_->GetPictureLayerImplPairs(&layer_pairs, true);
EXPECT_EQ(1u, layer_pairs.size());
EXPECT_EQ(active_layer, layer_pairs[0].active);
EXPECT_EQ(pending_layer, layer_pairs[0].pending);
@@ -7613,7 +7613,7 @@ TEST_F(LayerTreeHostImplTest, GetPictureLayerImplPairs) {
host_impl_->ActivateSyncTree();
layer_pairs.clear();
- host_impl_->GetPictureLayerImplPairs(&layer_pairs);
+ host_impl_->GetPictureLayerImplPairs(&layer_pairs, true);
EXPECT_EQ(1u, layer_pairs.size());
EXPECT_EQ(active_layer, layer_pairs[0].active);
EXPECT_EQ(nullptr, layer_pairs[0].pending);
@@ -7627,7 +7627,7 @@ TEST_F(LayerTreeHostImplTest, GetPictureLayerImplPairs) {
LayerImpl* new_pending_layer = pending_tree->root_layer()->children()[0];
layer_pairs.clear();
- host_impl_->GetPictureLayerImplPairs(&layer_pairs);
+ host_impl_->GetPictureLayerImplPairs(&layer_pairs, true);
EXPECT_EQ(2u, layer_pairs.size());
// The pair ordering is flaky, so make it consistent.
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698