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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 2017263002: cc: Move copy requests from layers to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in comment Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index d80db11a5f2329ced181089b7fa787930dd5122a..48bb194e7c267b897dff9c0ac05d3ffed8d73717 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -139,17 +139,7 @@ class CC_EXPORT LayerTreeImpl {
std::unique_ptr<OwnedLayerImplList> DetachLayers();
void ClearLayers();
- void SetPropertyTrees(const PropertyTrees& property_trees) {
- property_trees_ = property_trees;
- property_trees_.is_main_thread = false;
- property_trees_.is_active = IsActiveTree();
- property_trees_.transform_tree.set_source_to_parent_updates_allowed(false);
- // The value of some effect node properties (like is_drawn) depends on
- // whether we are on the active tree or not. So, we need to update the
- // effect tree.
- if (IsActiveTree())
- property_trees_.effect_tree.set_needs_update(true);
- }
+ void SetPropertyTrees(PropertyTrees* property_trees);
PropertyTrees* property_trees() { return &property_trees_; }
void UpdatePropertyTreesForBoundsDelta();
@@ -392,10 +382,6 @@ class CC_EXPORT LayerTreeImpl {
void RegisterScrollLayer(LayerImpl* layer);
void UnregisterScrollLayer(LayerImpl* layer);
- void AddLayerWithCopyOutputRequest(LayerImpl* layer);
- void RemoveLayerWithCopyOutputRequest(LayerImpl* layer);
- const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const;
-
void AddSurfaceLayer(LayerImpl* layer);
void RemoveSurfaceLayer(LayerImpl* layer);
const std::vector<LayerImpl*>& SurfaceLayers() const {
@@ -546,7 +532,6 @@ class CC_EXPORT LayerTreeImpl {
std::multimap<int, int> scrollbar_map_;
std::vector<PictureLayerImpl*> picture_layers_;
- std::vector<LayerImpl*> layers_with_copy_output_request_;
std::vector<LayerImpl*> surface_layers_;
// List of visible layers for the most recently prepared frame.
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698