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

Unified Diff: cc/trees/layer_tree_host_unittest_delegated.cc

Issue 69343011: cc: Rationalize sync points and lost status for returned resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/resources/transferable_resource.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_unittest_delegated.cc
diff --git a/cc/trees/layer_tree_host_unittest_delegated.cc b/cc/trees/layer_tree_host_unittest_delegated.cc
index a8f2ede4bcb20bd3828c7351dc412b7dd6c9be90..161bac473300db103203026887bfa027f40ef0f0 100644
--- a/cc/trees/layer_tree_host_unittest_delegated.cc
+++ b/cc/trees/layer_tree_host_unittest_delegated.cc
@@ -137,6 +137,7 @@ class LayerTreeHostDelegatedTest : public LayerTreeTest {
TransferableResource resource;
resource.id = resource_id;
resource.target = GL_TEXTURE_2D;
+ resource.mailbox.name[0] = 1;
frame->resource_list.push_back(resource);
}
@@ -2218,6 +2219,9 @@ class LayerTreeHostDelegatedTestRemoveAndAddToTree
{
unsigned expected[] = {777, 888};
EXPECT_RESOURCES(expected, resources);
+ // Those resources should not be lost.
+ EXPECT_FALSE(resources[0].lost);
+ EXPECT_FALSE(resources[1].lost);
EXPECT_TRUE(TestAndResetAvailable());
}
EndTest();
« no previous file with comments | « cc/resources/transferable_resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698