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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1832663002: cc : Determine if a layer is root by using the value in LayerTreeImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_impl.h ('k') | cc/trees/occlusion_tracker.cc » ('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 e89c84d102f23dc4cc59f406897b639a8e82fe6f..0420344247132d31c1a144f60545119b769a9d73 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -280,6 +280,10 @@ void LayerTreeImpl::SetRootLayer(scoped_ptr<LayerImpl> layer) {
layer_tree_host_impl_->OnCanDrawStateChangedForTree();
}
+bool LayerTreeImpl::IsRootLayer(const LayerImpl* layer) const {
+ return root_layer_ == layer;
+}
+
LayerImpl* LayerTreeImpl::InnerViewportScrollLayer() const {
return LayerById(inner_viewport_scroll_layer_id_);
}
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698