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

Unified Diff: cc/trees/layer_tree_host.h

Issue 2846653002: cc : Stop pushing layers from hidden subtrees at commit
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 51622245b1ef7feacc27912658df618094697975..996a068ffd5732f672922250446bf4422062b690 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -355,6 +355,11 @@ class CC_EXPORT LayerTreeHost : public NON_EXPORTED_BASE(SurfaceReferenceOwner),
void SetHasCopyRequest(bool has_copy_request);
bool has_copy_request() const { return has_copy_request_; }
+ void AddSurfaceLayerId(const SurfaceId& surface_id);
+ void RemoveSurfaceLayerId(const SurfaceId& surface_id);
+ const std::vector<SurfaceId>& SurfaceLayerIds() const;
+ void ClearSurfaceLayerIds();
+
void AddLayerShouldPushProperties(Layer* layer);
void RemoveLayerShouldPushProperties(Layer* layer);
std::unordered_set<Layer*>& LayersThatShouldPushProperties();
@@ -614,6 +619,8 @@ class CC_EXPORT LayerTreeHost : public NON_EXPORTED_BASE(SurfaceReferenceOwner),
scoped_refptr<HeadsUpDisplayLayer> hud_layer_;
+ std::vector<SurfaceId> surface_layer_ids_;
+
// Set of layers that need to push properties.
std::unordered_set<Layer*> layers_that_should_push_properties_;

Powered by Google App Engine
This is Rietveld 408576698