| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 gfx::Vector2dF elastic_overscroll_; | 602 gfx::Vector2dF elastic_overscroll_; |
| 603 | 603 |
| 604 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; | 604 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; |
| 605 | 605 |
| 606 // Set of layers that need to push properties. | 606 // Set of layers that need to push properties. |
| 607 std::unordered_set<Layer*> layers_that_should_push_properties_; | 607 std::unordered_set<Layer*> layers_that_should_push_properties_; |
| 608 | 608 |
| 609 // Layer id to Layer map. | 609 // Layer id to Layer map. |
| 610 std::unordered_map<int, Layer*> layer_id_map_; | 610 std::unordered_map<int, Layer*> layer_id_map_; |
| 611 | 611 |
| 612 std::unordered_map<ElementId, Layer*, ElementIdHash> element_layers_map_; | 612 std::unordered_map<ElementId, Layer*> element_layers_map_; |
| 613 | 613 |
| 614 bool in_paint_layer_contents_ = false; | 614 bool in_paint_layer_contents_ = false; |
| 615 bool in_update_property_trees_ = false; | 615 bool in_update_property_trees_ = false; |
| 616 | 616 |
| 617 // This is true if atleast one layer in the layer tree has a copy request. We | 617 // This is true if atleast one layer in the layer tree has a copy request. We |
| 618 // use this bool to decide whether we need to compute subtree has copy request | 618 // use this bool to decide whether we need to compute subtree has copy request |
| 619 // for every layer during property tree building. | 619 // for every layer during property tree building. |
| 620 bool has_copy_request_ = false; | 620 bool has_copy_request_ = false; |
| 621 | 621 |
| 622 MutatorHost* mutator_host_; | 622 MutatorHost* mutator_host_; |
| 623 | 623 |
| 624 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> | 624 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> |
| 625 queued_image_decodes_; | 625 queued_image_decodes_; |
| 626 | 626 |
| 627 bool did_navigate_ = false; | 627 bool did_navigate_ = false; |
| 628 | 628 |
| 629 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 629 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 630 }; | 630 }; |
| 631 | 631 |
| 632 } // namespace cc | 632 } // namespace cc |
| 633 | 633 |
| 634 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 634 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |