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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 256773003: Change get_child_as_raw_ptr to get_layer_as_raw_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/layer_iterator.h ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index ba5d579a5de7ec9a3ca178f434abc71b7621c951..de9a713ccb6b0f44488490c4d1f1d30e23104f6d 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -127,21 +127,18 @@ class CC_EXPORT LayerTreeHostCommon {
template <typename LayerType>
static LayerType* FindLayerInSubtree(LayerType* root_layer, int layer_id);
- static Layer* get_child_as_raw_ptr(
- const LayerList& children,
- size_t index) {
- return children[index].get();
+ static Layer* get_layer_as_raw_ptr(const LayerList& layers, size_t index) {
+ return layers[index].get();
}
- static LayerImpl* get_child_as_raw_ptr(
- const OwnedLayerImplList& children,
- size_t index) {
- return children[index];
+ static LayerImpl* get_layer_as_raw_ptr(const OwnedLayerImplList& layers,
+ size_t index) {
+ return layers[index];
}
- static LayerImpl* get_child_as_raw_ptr(const LayerImplList& children,
+ static LayerImpl* get_layer_as_raw_ptr(const LayerImplList& layers,
size_t index) {
- return children[index];
+ return layers[index];
}
struct ScrollUpdateInfo {
@@ -191,7 +188,7 @@ LayerType* LayerTreeHostCommon::FindLayerInSubtree(LayerType* root_layer,
for (size_t i = 0; i < root_layer->children().size(); ++i) {
if (LayerType* found = FindLayerInSubtree(
- get_child_as_raw_ptr(root_layer->children(), i), layer_id))
+ get_layer_as_raw_ptr(root_layer->children(), i), layer_id))
return found;
}
return NULL;
@@ -212,7 +209,7 @@ void LayerTreeHostCommon::CallFunctionForSubtree(
}
for (size_t i = 0; i < root_layer->children().size(); ++i) {
- CallFunctionForSubtree(get_child_as_raw_ptr(root_layer->children(), i),
+ CallFunctionForSubtree(get_layer_as_raw_ptr(root_layer->children(), i),
function);
}
}
« no previous file with comments | « cc/layers/layer_iterator.h ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698