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

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

Issue 2693703010: cc: Remove support for disabling non-root render surfaces. (Closed)
Patch Set: softwaredraw-remove-no-surfaces: rebase 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CC_TREES_PROPERTY_TREE_H_ 5 #ifndef CC_TREES_PROPERTY_TREE_H_
6 #define CC_TREES_PROPERTY_TREE_H_ 6 #define CC_TREES_PROPERTY_TREE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 const std::vector<int>& mask_layer_ids() const { return mask_layer_ids_; } 387 const std::vector<int>& mask_layer_ids() const { return mask_layer_ids_; }
388 388
389 RenderSurfaceImpl* GetRenderSurface(int id) { 389 RenderSurfaceImpl* GetRenderSurface(int id) {
390 return render_surfaces_[id].get(); 390 return render_surfaces_[id].get();
391 } 391 }
392 392
393 const RenderSurfaceImpl* GetRenderSurface(int id) const { 393 const RenderSurfaceImpl* GetRenderSurface(int id) const {
394 return render_surfaces_[id].get(); 394 return render_surfaces_[id].get();
395 } 395 }
396 396
397 void UpdateRenderSurfaces(LayerTreeImpl* layer_tree_impl, 397 void UpdateRenderSurfaces(LayerTreeImpl* layer_tree_impl);
398 bool non_root_surfaces_enabled);
399 398
400 bool ContributesToDrawnSurface(int id); 399 bool ContributesToDrawnSurface(int id);
401 400
402 void ResetChangeTracking(); 401 void ResetChangeTracking();
403 402
404 void TakeRenderSurfaces( 403 void TakeRenderSurfaces(
405 std::vector<std::unique_ptr<RenderSurfaceImpl>>* render_surfaces); 404 std::vector<std::unique_ptr<RenderSurfaceImpl>>* render_surfaces);
406 405
407 // Returns true if render surfaces changed (that is, if any render surfaces 406 // Returns true if render surfaces changed (that is, if any render surfaces
408 // were created or destroyed). 407 // were created or destroyed).
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 base::flat_map<ElementId, int> element_id_to_effect_node_index; 646 base::flat_map<ElementId, int> element_id_to_effect_node_index;
648 base::flat_map<ElementId, int> element_id_to_scroll_node_index; 647 base::flat_map<ElementId, int> element_id_to_scroll_node_index;
649 base::flat_map<ElementId, int> element_id_to_transform_node_index; 648 base::flat_map<ElementId, int> element_id_to_transform_node_index;
650 649
651 std::vector<int> always_use_active_tree_opacity_effect_ids; 650 std::vector<int> always_use_active_tree_opacity_effect_ids;
652 TransformTree transform_tree; 651 TransformTree transform_tree;
653 EffectTree effect_tree; 652 EffectTree effect_tree;
654 ClipTree clip_tree; 653 ClipTree clip_tree;
655 ScrollTree scroll_tree; 654 ScrollTree scroll_tree;
656 bool needs_rebuild; 655 bool needs_rebuild;
657 bool non_root_surfaces_enabled;
658 bool can_adjust_raster_scales; 656 bool can_adjust_raster_scales;
659 // Change tracking done on property trees needs to be preserved across commits 657 // Change tracking done on property trees needs to be preserved across commits
660 // (when they are not rebuild). We cache a global bool which stores whether 658 // (when they are not rebuild). We cache a global bool which stores whether
661 // we did any change tracking so that we can skip copying the change status 659 // we did any change tracking so that we can skip copying the change status
662 // between property trees when this bool is false. 660 // between property trees when this bool is false.
663 bool changed; 661 bool changed;
664 // We cache a global bool for full tree damages to avoid walking the entire 662 // We cache a global bool for full tree damages to avoid walking the entire
665 // tree. 663 // tree.
666 // TODO(jaydasika): Changes to transform and effects that damage the entire 664 // TODO(jaydasika): Changes to transform and effects that damage the entire
667 // tree should be tracked by this bool. Currently, they are tracked by the 665 // tree should be tracked by this bool. Currently, they are tracked by the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; 724 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const;
727 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, 725 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id,
728 int effect_id) const; 726 int effect_id) const;
729 727
730 PropertyTreesCachedData cached_data_; 728 PropertyTreesCachedData cached_data_;
731 }; 729 };
732 730
733 } // namespace cc 731 } // namespace cc
734 732
735 #endif // CC_TREES_PROPERTY_TREE_H_ 733 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698