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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 gfx::Vector2dF elastic_overscroll_; 603 gfx::Vector2dF elastic_overscroll_;
604 604
605 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; 605 scoped_refptr<HeadsUpDisplayLayer> hud_layer_;
606 606
607 // Set of layers that need to push properties. 607 // Set of layers that need to push properties.
608 std::unordered_set<Layer*> layers_that_should_push_properties_; 608 std::unordered_set<Layer*> layers_that_should_push_properties_;
609 609
610 // Layer id to Layer map. 610 // Layer id to Layer map.
611 std::unordered_map<int, Layer*> layer_id_map_; 611 std::unordered_map<int, Layer*> layer_id_map_;
612 612
613 std::unordered_map<ElementId, Layer*, ElementIdHash> element_layers_map_; 613 std::unordered_map<ElementId::Id, Layer*> element_layers_map_;
614 614
615 bool in_paint_layer_contents_ = false; 615 bool in_paint_layer_contents_ = false;
616 bool in_update_property_trees_ = false; 616 bool in_update_property_trees_ = false;
617 617
618 // This is true if atleast one layer in the layer tree has a copy request. We 618 // This is true if atleast one layer in the layer tree has a copy request. We
619 // use this bool to decide whether we need to compute subtree has copy request 619 // use this bool to decide whether we need to compute subtree has copy request
620 // for every layer during property tree building. 620 // for every layer during property tree building.
621 bool has_copy_request_ = false; 621 bool has_copy_request_ = false;
622 622
623 MutatorHost* mutator_host_; 623 MutatorHost* mutator_host_;
624 624
625 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> 625 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>>
626 queued_image_decodes_; 626 queued_image_decodes_;
627 627
628 bool did_navigate_ = false; 628 bool did_navigate_ = false;
629 629
630 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 630 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
631 }; 631 };
632 632
633 } // namespace cc 633 } // namespace cc
634 634
635 #endif // CC_TREES_LAYER_TREE_HOST_H_ 635 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698