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

Unified Diff: cc/test/layer_test_common.cc

Issue 1944623002: CC Animation: Use ElementId to attach CC animation players. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasedomids
Patch Set: Let CC clients generate their own ElementIds locally. Created 4 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
Index: cc/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index 4ba0927d230b2e1fc013c756d83fbee2c3d756b4..0728a5191a09c139fef3fd43caa0b80f27994ffd 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -127,6 +127,7 @@ LayerTestCommon::LayerImplTest::LayerImplTest(const LayerTreeSettings& settings)
layer_impl_id_(2) {
std::unique_ptr<LayerImpl> root =
LayerImpl::Create(host_->host_impl()->active_tree(), 1);
+ root->SetElementId(NextTestElementId());
host_->host_impl()->active_tree()->SetRootLayer(std::move(root));
root_layer()->SetHasRenderSurface(true);
host_->host_impl()->SetVisible(true);

Powered by Google App Engine
This is Rietveld 408576698