OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
503 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; | 503 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; |
504 | 504 |
505 std::unique_ptr<OwnedLayerImplList> layers_; | 505 std::unique_ptr<OwnedLayerImplList> layers_; |
506 LayerImplMap layer_id_map_; | 506 LayerImplMap layer_id_map_; |
507 LayerImplList layer_list_; | 507 LayerImplList layer_list_; |
508 // Set of layers that need to push properties. | 508 // Set of layers that need to push properties. |
509 std::unordered_set<LayerImpl*> layers_that_should_push_properties_; | 509 std::unordered_set<LayerImpl*> layers_that_should_push_properties_; |
510 | 510 |
511 std::unordered_map<ElementId, int, ElementIdHash> element_layers_map_; | 511 std::unordered_map<ElementId, int, ElementIdHash> element_layers_map_; |
512 | 512 |
513 std::unordered_map<int, float> opacity_animations_map_; | 513 std::unordered_map<ElementId, float, ElementIdHash> opacity_animations_map_; |
wkorman
2017/03/20 21:59:57
Thoughts on naming these xx_to_yy? We did that for
| |
514 std::unordered_map<int, gfx::Transform> transform_animations_map_; | 514 std::unordered_map<ElementId, gfx::Transform, ElementIdHash> |
515 std::unordered_map<int, FilterOperations> filter_animations_map_; | 515 transform_animations_map_; |
516 std::unordered_map<ElementId, FilterOperations, ElementIdHash> | |
517 filter_animations_map_; | |
516 | 518 |
517 // Maps from clip layer ids to scroll layer ids. Note that this only includes | 519 // Maps from clip layer ids to scroll layer ids. Note that this only includes |
518 // the subset of clip layers that act as scrolling containers. (This is | 520 // the subset of clip layers that act as scrolling containers. (This is |
519 // derived from LayerImpl::scroll_clip_layer_ and exists to avoid O(n) walks.) | 521 // derived from LayerImpl::scroll_clip_layer_ and exists to avoid O(n) walks.) |
520 std::unordered_map<int, int> clip_scroll_map_; | 522 std::unordered_map<int, int> clip_scroll_map_; |
521 | 523 |
522 // Maps scroll layer ids to scrollbar layer ids. For each scroll layer, there | 524 // Maps scroll layer ids to scrollbar layer ids. For each scroll layer, there |
523 // may be 1 or 2 scrollbar layers (for vertical and horizontal). (This is | 525 // may be 1 or 2 scrollbar layers (for vertical and horizontal). (This is |
524 // derived from ScrollbarLayerImplBase::scroll_layer_id_ and exists to avoid | 526 // derived from ScrollbarLayerImplBase::scroll_layer_id_ and exists to avoid |
525 // O(n) walks.) | 527 // O(n) walks.) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
568 | 570 |
569 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 571 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
570 | 572 |
571 private: | 573 private: |
572 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 574 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
573 }; | 575 }; |
574 | 576 |
575 } // namespace cc | 577 } // namespace cc |
576 | 578 |
577 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 579 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |