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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1430363002: List all child surfaces (including occluded) in CompositorFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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_impl.h ('k') | content/common/cc_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 596476081d1b175e64dcaf8246c6b47f83d837ad..06635e51f0d5776f8d1d4e5209779092cdc8c0c5 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1319,6 +1319,19 @@ void LayerTreeImpl::RemoveLayerWithCopyOutputRequest(LayerImpl* layer) {
}
}
+void LayerTreeImpl::AddSurfaceLayer(LayerImpl* layer) {
+ DCHECK(std::find(surface_layers_.begin(), surface_layers_.end(), layer) ==
+ surface_layers_.end());
+ surface_layers_.push_back(layer);
+}
+
+void LayerTreeImpl::RemoveSurfaceLayer(LayerImpl* layer) {
+ std::vector<LayerImpl*>::iterator it =
+ std::find(surface_layers_.begin(), surface_layers_.end(), layer);
+ DCHECK(it != surface_layers_.end());
+ surface_layers_.erase(it);
+}
+
const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest()
const {
// Only the active tree needs to know about layers with copy requests, as
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698