| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 void MoveChangeTrackingToLayers(); | 150 void MoveChangeTrackingToLayers(); |
| 151 | 151 |
| 152 LayerImplList::const_iterator begin() const; | 152 LayerImplList::const_iterator begin() const; |
| 153 LayerImplList::const_iterator end() const; | 153 LayerImplList::const_iterator end() const; |
| 154 LayerImplList::reverse_iterator rbegin(); | 154 LayerImplList::reverse_iterator rbegin(); |
| 155 LayerImplList::reverse_iterator rend(); | 155 LayerImplList::reverse_iterator rend(); |
| 156 | 156 |
| 157 void AddToOpacityAnimationsMap(int id, float opacity); | 157 void AddToOpacityAnimationsMap(int id, float opacity); |
| 158 void AddToTransformAnimationsMap(int id, gfx::Transform transform); | 158 void AddToTransformAnimationsMap(int id, gfx::Transform transform); |
| 159 void AddToFilterAnimationsMap(int id, const FilterOperations& filters); |
| 159 | 160 |
| 160 int source_frame_number() const { return source_frame_number_; } | 161 int source_frame_number() const { return source_frame_number_; } |
| 161 void set_source_frame_number(int frame_number) { | 162 void set_source_frame_number(int frame_number) { |
| 162 source_frame_number_ = frame_number; | 163 source_frame_number_ = frame_number; |
| 163 } | 164 } |
| 164 | 165 |
| 165 bool is_first_frame_after_commit() const { | 166 bool is_first_frame_after_commit() const { |
| 166 return source_frame_number_ != is_first_frame_after_commit_tracker_; | 167 return source_frame_number_ != is_first_frame_after_commit_tracker_; |
| 167 } | 168 } |
| 168 | 169 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 std::unique_ptr<OwnedLayerImplList> layers_; | 500 std::unique_ptr<OwnedLayerImplList> layers_; |
| 500 LayerImplMap layer_id_map_; | 501 LayerImplMap layer_id_map_; |
| 501 LayerImplList layer_list_; | 502 LayerImplList layer_list_; |
| 502 // Set of layers that need to push properties. | 503 // Set of layers that need to push properties. |
| 503 std::unordered_set<LayerImpl*> layers_that_should_push_properties_; | 504 std::unordered_set<LayerImpl*> layers_that_should_push_properties_; |
| 504 | 505 |
| 505 std::unordered_map<ElementId, LayerImpl*, ElementIdHash> element_layers_map_; | 506 std::unordered_map<ElementId, LayerImpl*, ElementIdHash> element_layers_map_; |
| 506 | 507 |
| 507 std::unordered_map<int, float> opacity_animations_map_; | 508 std::unordered_map<int, float> opacity_animations_map_; |
| 508 std::unordered_map<int, gfx::Transform> transform_animations_map_; | 509 std::unordered_map<int, gfx::Transform> transform_animations_map_; |
| 510 std::unordered_map<int, FilterOperations> filter_animations_map_; |
| 509 | 511 |
| 510 // Maps from clip layer ids to scroll layer ids. Note that this only includes | 512 // Maps from clip layer ids to scroll layer ids. Note that this only includes |
| 511 // the subset of clip layers that act as scrolling containers. (This is | 513 // the subset of clip layers that act as scrolling containers. (This is |
| 512 // derived from LayerImpl::scroll_clip_layer_ and exists to avoid O(n) walks.) | 514 // derived from LayerImpl::scroll_clip_layer_ and exists to avoid O(n) walks.) |
| 513 std::unordered_map<int, int> clip_scroll_map_; | 515 std::unordered_map<int, int> clip_scroll_map_; |
| 514 | 516 |
| 515 // Maps scroll layer ids to scrollbar layer ids. For each scroll layer, there | 517 // Maps scroll layer ids to scrollbar layer ids. For each scroll layer, there |
| 516 // may be 1 or 2 scrollbar layers (for vertical and horizontal). (This is | 518 // may be 1 or 2 scrollbar layers (for vertical and horizontal). (This is |
| 517 // derived from ScrollbarLayerImplBase::scroll_layer_id_ and exists to avoid | 519 // derived from ScrollbarLayerImplBase::scroll_layer_id_ and exists to avoid |
| 518 // O(n) walks.) | 520 // O(n) walks.) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 560 |
| 559 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 561 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 560 | 562 |
| 561 private: | 563 private: |
| 562 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 564 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 563 }; | 565 }; |
| 564 | 566 |
| 565 } // namespace cc | 567 } // namespace cc |
| 566 | 568 |
| 567 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 569 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |