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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 1924933002: cc : Stop pushing properties not used by LayerImpl to LayerImpl (4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_impl_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.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.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index d443abcafc29c1e85316aca2fd7c39c55c77c2af..eb7c3dd9c734bf720e055b1404fdcfaad43f2305 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -326,7 +326,7 @@ static void PreCalculateMetaInformationInternal(
static void PreCalculateMetaInformationInternalForTesting(
LayerImpl* layer,
PreCalculateMetaInformationRecursiveData* recursive_data) {
- if (layer->clip_parent())
+ if (layer->test_properties()->clip_parent)
recursive_data->num_unclipped_descendants++;
if (!HasInvertibleOrAnimatedTransformForTesting(layer)) {
@@ -343,8 +343,8 @@ static void PreCalculateMetaInformationInternalForTesting(
recursive_data->Merge(data_for_child);
}
- if (layer->clip_children()) {
- size_t num_clip_children = layer->clip_children()->size();
+ if (layer->test_properties()->clip_children) {
+ size_t num_clip_children = layer->test_properties()->clip_children->size();
DCHECK_GE(recursive_data->num_unclipped_descendants, num_clip_children);
recursive_data->num_unclipped_descendants -= num_clip_children;
}
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698