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

Unified Diff: cc/trees/layer_tree_host.cc

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.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 8db96130c74303927c5712016310f894d3d87349..9a74bacb0f05aa9857c8f6d960f3659bdafee193 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -1092,6 +1092,25 @@ bool LayerTreeHost::PaintContent(const LayerList& update_layer_list,
return did_paint_content;
}
+void LayerTreeHost::AddSurfaceLayerId(const SurfaceId& surface_id) {
+ surface_layer_ids_.push_back(surface_id);
jaydasika 2017/05/23 00:25:14 Will add a DCHECK for checking surface id is not a
+}
+
+void LayerTreeHost::RemoveSurfaceLayerId(const SurfaceId& surface_id) {
+ auto pos = std::find(surface_layer_ids_.begin(), surface_layer_ids_.end(),
+ surface_id);
+ if (pos != surface_layer_ids_.end())
+ surface_layer_ids_.erase(pos);
+}
+
+const std::vector<SurfaceId>& LayerTreeHost::SurfaceLayerIds() const {
+ return surface_layer_ids_;
+}
+
+void LayerTreeHost::ClearSurfaceLayerIds() {
+ surface_layer_ids_.clear();
+}
+
void LayerTreeHost::AddLayerShouldPushProperties(Layer* layer) {
layers_that_should_push_properties_.insert(layer);
}

Powered by Google App Engine
This is Rietveld 408576698