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

Unified Diff: cc/test/layer_tree_test.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_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index 7275ec3a70a98de49c452c8023199dcc16b45047..f8ca5ddcc79755c58c3da50948b5c0f0c7d7349f 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -736,6 +736,7 @@ void LayerTreeTest::DoBeginTest() {
void LayerTreeTest::SetupTree() {
if (!layer_tree_host_->root_layer()) {
scoped_refptr<Layer> root_layer = Layer::Create();
+ root_layer->SetElementId(NextTestElementId());
root_layer->SetBounds(gfx::Size(1, 1));
layer_tree_host_->SetRootLayer(root_layer);
}
@@ -752,6 +753,12 @@ void LayerTreeTest::Timeout() {
EndTest();
}
+scoped_refptr<Layer> LayerTreeTest::CreateTestLayer() {
+ auto layer = Layer::Create();
+ layer->SetElementId(NextTestElementId());
+ return layer;
+}
+
void LayerTreeTest::RealEndTest() {
// TODO(mithro): Make this method only end when not inside an impl frame.
bool main_frame_will_happen;

Powered by Google App Engine
This is Rietveld 408576698