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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2822303003: cc : Compute subtree has copy requests before property tree building (Closed)
Patch Set: . Created 3 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
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 2e7457a49aac6600be861bf479eb244c545a3d17..cf667dd7c8b33314a41a1fa2d9ae48e43633ccf9 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -6508,7 +6508,7 @@ class LayerTreeHostTestUpdateCopyRequests : public LayerTreeHostTest {
void WillCommit() override {
switch (layer_tree_host()->SourceFrameNumber()) {
case 1:
- EXPECT_GT(root->num_copy_requests_in_target_subtree(), 0);
+ EXPECT_TRUE(root->has_copy_requests_in_target_subtree());
break;
}
}
@@ -6531,7 +6531,7 @@ class LayerTreeHostTestUpdateCopyRequests : public LayerTreeHostTest {
child->SetTransform(transform);
break;
case 3:
- EXPECT_EQ(root->num_copy_requests_in_target_subtree(), 0);
+ EXPECT_FALSE(root->has_copy_requests_in_target_subtree());
EndTest();
break;
}

Powered by Google App Engine
This is Rietveld 408576698