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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 2080223010: cc: Clean up root_layer code in LTI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase++ Created 4 years, 6 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_unittest_video.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 dadc6c3d3a2fcf8ab75624c6b831410a7cb28566..e07946f8dba77697fe0147b54dcb84355c34187f 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -131,11 +131,14 @@ class CC_EXPORT LayerTreeImpl {
// Other public methods
// ---------------------------------------------------------------------------
- LayerImpl* root_layer() const { return root_layer_; }
+ LayerImpl* root_layer_for_testing() {
+ return layer_list_.empty() ? nullptr : layer_list_[0];
+ }
RenderSurfaceImpl* RootRenderSurface() const;
bool LayerListIsEmpty() const;
- void SetRootLayer(std::unique_ptr<LayerImpl>);
- void SetRootLayerFromLayerList();
+ void SetRootLayerForTesting(std::unique_ptr<LayerImpl>);
+ void SetRootLayerFromLayerListForTesting();
+ void OnCanDrawStateChangedForTree();
bool IsRootLayer(const LayerImpl* layer) const;
std::unique_ptr<OwnedLayerImplList> DetachLayers();
@@ -500,7 +503,7 @@ class CC_EXPORT LayerTreeImpl {
LayerTreeHostImpl* layer_tree_host_impl_;
int source_frame_number_;
int is_first_frame_after_commit_tracker_;
- LayerImpl* root_layer_;
+ LayerImpl* root_layer_for_testing_;
HeadsUpDisplayLayerImpl* hud_layer_;
PropertyTrees property_trees_;
SkColor background_color_;
« no previous file with comments | « cc/trees/layer_tree_host_unittest_video.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698