OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/trees/property_tree_builder.h" | 5 #include "cc/trees/property_tree_builder.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 root_clip.data.clip = gfx::RectF(viewport); | 1263 root_clip.data.clip = gfx::RectF(viewport); |
1264 root_clip.data.transform_id = kRootPropertyTreeNodeId; | 1264 root_clip.data.transform_id = kRootPropertyTreeNodeId; |
1265 data_for_recursion.clip_tree_parent = | 1265 data_for_recursion.clip_tree_parent = |
1266 data_for_recursion.property_trees->clip_tree.Insert( | 1266 data_for_recursion.property_trees->clip_tree.Insert( |
1267 root_clip, kRootPropertyTreeNodeId); | 1267 root_clip, kRootPropertyTreeNodeId); |
1268 | 1268 |
1269 DataForRecursionFromChild<LayerType> data_from_child; | 1269 DataForRecursionFromChild<LayerType> data_from_child; |
1270 BuildPropertyTreesInternal(root_layer, data_for_recursion, &data_from_child); | 1270 BuildPropertyTreesInternal(root_layer, data_for_recursion, &data_from_child); |
1271 property_trees->needs_rebuild = false; | 1271 property_trees->needs_rebuild = false; |
1272 | 1272 |
1273 // The transform tree is kept up-to-date as it is built, but the | 1273 // The transform tree is kept up to date as it is built, but the |
1274 // combined_clips stored in the clip tree and the screen_space_opacity and | 1274 // combined_clips stored in the clip tree and the screen_space_opacity and |
1275 // is_drawn in the effect tree aren't computed during tree building. | 1275 // is_drawn in the effect tree aren't computed during tree building. |
1276 property_trees->transform_tree.set_needs_update(false); | 1276 property_trees->transform_tree.set_needs_update(false); |
1277 property_trees->clip_tree.set_needs_update(true); | 1277 property_trees->clip_tree.set_needs_update(true); |
1278 property_trees->effect_tree.set_needs_update(true); | 1278 property_trees->effect_tree.set_needs_update(true); |
1279 property_trees->scroll_tree.set_needs_update(false); | 1279 property_trees->scroll_tree.set_needs_update(false); |
1280 } | 1280 } |
1281 | 1281 |
1282 #if DCHECK_IS_ON() | 1282 #if DCHECK_IS_ON() |
1283 static void CheckScrollAndClipPointersForLayer(Layer* layer) { | 1283 static void CheckScrollAndClipPointersForLayer(Layer* layer) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 if (SkColorGetA(color) != 255) | 1346 if (SkColorGetA(color) != 255) |
1347 color = SkColorSetA(color, 255); | 1347 color = SkColorSetA(color, 255); |
1348 BuildPropertyTreesTopLevelInternal( | 1348 BuildPropertyTreesTopLevelInternal( |
1349 root_layer, page_scale_layer, inner_viewport_scroll_layer, | 1349 root_layer, page_scale_layer, inner_viewport_scroll_layer, |
1350 outer_viewport_scroll_layer, overscroll_elasticity_layer, | 1350 outer_viewport_scroll_layer, overscroll_elasticity_layer, |
1351 elastic_overscroll, page_scale_factor, device_scale_factor, viewport, | 1351 elastic_overscroll, page_scale_factor, device_scale_factor, viewport, |
1352 device_transform, property_trees, color); | 1352 device_transform, property_trees, color); |
1353 } | 1353 } |
1354 | 1354 |
1355 } // namespace cc | 1355 } // namespace cc |
OLD | NEW |