| Index: cc/test/layer_test_common.h
|
| diff --git a/cc/test/layer_test_common.h b/cc/test/layer_test_common.h
|
| index 3b967ec58033ca2442acc2f39eec3b0b77e035a0..e74ea6d131d1b228ff998717f1d6746af4f7b940 100644
|
| --- a/cc/test/layer_test_common.h
|
| +++ b/cc/test/layer_test_common.h
|
| @@ -69,6 +69,15 @@ class LayerTestCommon {
|
| return ptr;
|
| }
|
|
|
| + template <typename T, typename A, typename B>
|
| + T* AddChildToRoot(const A& a, const B& b) {
|
| + scoped_ptr<T> layer =
|
| + T::Create(host_->host_impl()->active_tree(), 2, a, b);
|
| + T* ptr = layer.get();
|
| + root_layer_impl_->AddChild(layer.template PassAs<LayerImpl>());
|
| + return ptr;
|
| + }
|
| +
|
| template <typename T, typename A, typename B, typename C, typename D>
|
| T* AddChildToRoot(const A& a, const B& b, const C& c, const D& d) {
|
| scoped_ptr<T> layer =
|
|
|