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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 2905533002: cc : Store surface layer ids on LayerTreeHost and push them at commit (Closed)
Patch Set: initialize Created 3 years, 7 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/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | 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 de683f838311e4290aae25404994f1ac047e2633..4a429d7a009781838aa1b76a9a3d79dafa0c1a4c 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -3485,7 +3485,13 @@ TEST_F(LayerTreeHostImplTest, ActivationDependenciesInMetadata) {
root->test_properties()->AddChild(std::move(child));
}
+ base::flat_set<SurfaceId> fallback_surfaces_set;
+ for (size_t i = 0; i < fallback_surfaces.size(); ++i) {
+ fallback_surfaces_set.insert(fallback_surfaces[i]);
+ }
+
host_impl_->active_tree()->BuildPropertyTreesForTesting();
+ host_impl_->active_tree()->SetSurfaceLayerIds(fallback_surfaces_set);
DrawFrame();
FakeCompositorFrameSink* fake_compositor_frame_sink =
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698