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

Unified Diff: cc/test/layer_test_common.h

Issue 609663003: cc: Remove use of PassAs() and constructor-casting with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc-passas: PassAs-presubmit-warning Created 6 years, 3 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/test/fake_tile_manager.cc ('k') | cc/test/layer_test_common.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 8e2fdfb0e356b03bbb4eba8cb8816d242a22fe44..5ff96efb725649febec4abdb4dfee30287ff4096 100644
--- a/cc/test/layer_test_common.h
+++ b/cc/test/layer_test_common.h
@@ -55,7 +55,7 @@ class LayerTestCommon {
T* AddChildToRoot() {
scoped_ptr<T> layer = T::Create(host_->host_impl()->active_tree(), 2);
T* ptr = layer.get();
- root_layer_impl_->AddChild(layer.template PassAs<LayerImpl>());
+ root_layer_impl_->AddChild(layer.Pass());
return ptr;
}
@@ -63,7 +63,7 @@ class LayerTestCommon {
T* AddChildToRoot(const A& a) {
scoped_ptr<T> layer = T::Create(host_->host_impl()->active_tree(), 2, a);
T* ptr = layer.get();
- root_layer_impl_->AddChild(layer.template PassAs<LayerImpl>());
+ root_layer_impl_->AddChild(layer.Pass());
return ptr;
}
@@ -72,7 +72,7 @@ class LayerTestCommon {
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>());
+ root_layer_impl_->AddChild(layer.Pass());
return ptr;
}
@@ -81,7 +81,7 @@ class LayerTestCommon {
scoped_ptr<T> layer =
T::Create(host_->host_impl()->active_tree(), 2, a, b, c, d);
T* ptr = layer.get();
- root_layer_impl_->AddChild(layer.template PassAs<LayerImpl>());
+ root_layer_impl_->AddChild(layer.Pass());
return ptr;
}
@@ -99,7 +99,7 @@ class LayerTestCommon {
scoped_ptr<T> layer =
T::Create(host_->host_impl()->active_tree(), 2, a, b, c, d, e);
T* ptr = layer.get();
- root_layer_impl_->AddChild(layer.template PassAs<LayerImpl>());
+ root_layer_impl_->AddChild(layer.Pass());
return ptr;
}
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698