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

Unified Diff: cc/trees/layer_tree_host_unittest_delegated.cc

Issue 13445009: cc: Move video upload to VideoResourceUpdater. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: consume textures that were produced Created 7 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
« no previous file with comments | « cc/test/test_web_graphics_context_3d.cc ('k') | content/common/cc_messages.h » ('j') | 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 380113a804a4293320cd2c520aaa45aff2826470..f0814bfc776b7465d681ac31edd65f1eafac06a4 100644
--- a/cc/trees/layer_tree_host_unittest_delegated.cc
+++ b/cc/trees/layer_tree_host_unittest_delegated.cc
@@ -1109,6 +1109,9 @@ class LayerTreeHostDelegatedTestResourceSentToParent
TransferableResourceArray transferable_resources;
host_impl->resource_provider()->PrepareSendToParent(
resources_for_parent, &transferable_resources);
+
+ resource_in_grandparent = transferable_resources[0];
+ EXPECT_EQ(map.find(999)->second, resource_in_grandparent.id);
break;
}
case 2: {
@@ -1121,10 +1124,10 @@ class LayerTreeHostDelegatedTestResourceSentToParent
EXPECT_EQ(1u, delegated_impl->Resources().count(map.find(555)->second));
// Receive 999 back from the grandparent.
- TransferableResource resource;
- resource.id = map.find(999)->second;
+ EXPECT_EQ(map.find(999)->second, resource_in_grandparent.id);
TransferableResourceArray transferable_resources;
- transferable_resources.push_back(resource);
+ transferable_resources.push_back(resource_in_grandparent);
+
host_impl->resource_provider()->ReceiveFromParent(
transferable_resources);
break;
@@ -1140,6 +1143,8 @@ class LayerTreeHostDelegatedTestResourceSentToParent
}
virtual void AfterTest() OVERRIDE {}
+
+ TransferableResource resource_in_grandparent;
};
SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostDelegatedTestResourceSentToParent);
« no previous file with comments | « cc/test/test_web_graphics_context_3d.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698