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

Unified Diff: cc/trees/layer_tree_host_common.cc

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/trees/layer_tree_host_common.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 892e12a8ab7210599843de14a615726e942863f9..c83f2a3c0399cc640d2e537b8c77563bf1ca924a 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -1191,7 +1191,7 @@ static void PreCalculateMetaInformation(
for (size_t i = 0; i < layer->children().size(); ++i) {
LayerType* child_layer =
- LayerTreeHostCommon::get_child_as_raw_ptr(layer->children(), i);
+ LayerTreeHostCommon::get_layer_as_raw_ptr(layer->children(), i);
PreCalculateMetaInformationRecursiveData data_for_child;
PreCalculateMetaInformation(child_layer, &data_for_child);
@@ -1343,7 +1343,7 @@ static bool SortChildrenForRecursion(std::vector<LayerType*>* out,
bool order_changed = false;
for (size_t i = 0; i < parent.children().size(); ++i) {
LayerType* current =
- LayerTreeHostCommon::get_child_as_raw_ptr(parent.children(), i);
+ LayerTreeHostCommon::get_layer_as_raw_ptr(parent.children(), i);
if (current->draw_properties().sorted_for_recursion) {
order_changed = true;
@@ -1393,7 +1393,7 @@ static void SortLayerListContributions(
typename LayerType::LayerListType buffer;
for (size_t i = 0; i < parent.children().size(); ++i) {
LayerType* child =
- LayerTreeHostCommon::get_child_as_raw_ptr(parent.children(), i);
+ LayerTreeHostCommon::get_layer_as_raw_ptr(parent.children(), i);
size_t start_index = 0;
size_t count = 0;
@@ -2060,7 +2060,7 @@ static void CalculateDrawPropertiesInternal(
LayerType* child =
layer_draw_properties.has_child_with_a_scroll_parent
? sorted_children[i]
- : LayerTreeHostCommon::get_child_as_raw_ptr(layer->children(), i);
+ : LayerTreeHostCommon::get_layer_as_raw_ptr(layer->children(), i);
child->draw_properties().index_of_first_descendants_addition =
descendants.size();
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698