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

Unified Diff: ui/compositor/layer_tree_owner.cc

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Rebase Created 4 years, 2 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 | « ui/compositor/layer_tree_owner.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_tree_owner.cc
diff --git a/ui/compositor/layer_tree_owner.cc b/ui/compositor/layer_tree_owner.cc
index ebb0a7fc7f4b9da01245d897d4d9e66e19c5da82..768c5e34a2b51d418a86e03a426629a4e922e961 100644
--- a/ui/compositor/layer_tree_owner.cc
+++ b/ui/compositor/layer_tree_owner.cc
@@ -24,7 +24,8 @@ void DeepDeleteLayers(Layer* layer) {
} // namespace
-LayerTreeOwner::LayerTreeOwner(Layer* root) : root_(root) {}
+LayerTreeOwner::LayerTreeOwner(std::unique_ptr<Layer> root)
+ : root_(root.release()) {}
LayerTreeOwner::~LayerTreeOwner() {
if (root_)
« no previous file with comments | « ui/compositor/layer_tree_owner.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698