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

Unified Diff: cc/test/layer_test_common.h

Issue 2084233002: cc: Move LayerImpl::AddChild and RemoveChild to LayerImplTestProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/layers/video_layer_impl_unittest.cc ('k') | cc/test/layer_tree_json_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_test_common.h
diff --git a/cc/test/layer_test_common.h b/cc/test/layer_test_common.h
index 8cf0d4188e7289248531017dafa2774e1f629d82..094be5d859cbb3bc03d75226ea62d554a4f73a75 100644
--- a/cc/test/layer_test_common.h
+++ b/cc/test/layer_test_common.h
@@ -61,7 +61,7 @@ class LayerTestCommon {
std::unique_ptr<T> layer =
T::Create(host_->host_impl()->active_tree(), layer_impl_id_++);
T* ptr = layer.get();
- root_layer()->AddChild(std::move(layer));
+ root_layer()->test_properties()->AddChild(std::move(layer));
return ptr;
}
@@ -70,7 +70,7 @@ class LayerTestCommon {
std::unique_ptr<T> layer =
T::Create(host_->host_impl()->active_tree(), layer_impl_id_++);
T* ptr = layer.get();
- parent->AddChild(std::move(layer));
+ parent->test_properties()->AddChild(std::move(layer));
return ptr;
}
@@ -88,7 +88,7 @@ class LayerTestCommon {
std::unique_ptr<T> layer =
T::Create(host_->host_impl()->active_tree(), layer_impl_id_++, a);
T* ptr = layer.get();
- root_layer()->AddChild(std::move(layer));
+ root_layer()->test_properties()->AddChild(std::move(layer));
return ptr;
}
@@ -97,7 +97,7 @@ class LayerTestCommon {
std::unique_ptr<T> layer =
T::Create(host_->host_impl()->active_tree(), layer_impl_id_++, a, b);
T* ptr = layer.get();
- root_layer()->AddChild(std::move(layer));
+ root_layer()->test_properties()->AddChild(std::move(layer));
return ptr;
}
@@ -106,7 +106,7 @@ class LayerTestCommon {
std::unique_ptr<T> layer = T::Create(host_->host_impl()->active_tree(),
layer_impl_id_++, a, b, c, d);
T* ptr = layer.get();
- root_layer()->AddChild(std::move(layer));
+ root_layer()->test_properties()->AddChild(std::move(layer));
return ptr;
}
@@ -124,7 +124,7 @@ class LayerTestCommon {
std::unique_ptr<T> layer = T::Create(host_->host_impl()->active_tree(),
layer_impl_id_++, a, b, c, d, e);
T* ptr = layer.get();
- root_layer()->AddChild(std::move(layer));
+ root_layer()->test_properties()->AddChild(std::move(layer));
return ptr;
}
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/test/layer_tree_json_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698