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

Unified Diff: ui/compositor/layer_tree_owner.h

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_owner_unittest.cc ('k') | ui/compositor/layer_tree_owner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_tree_owner.h
diff --git a/ui/compositor/layer_tree_owner.h b/ui/compositor/layer_tree_owner.h
index a54142bef31d75416d4daf0287079925936ec678..4412c2225a09d216fa9b2a57e8adf723248ee965 100644
--- a/ui/compositor/layer_tree_owner.h
+++ b/ui/compositor/layer_tree_owner.h
@@ -5,6 +5,8 @@
#ifndef UI_COMPOSITOR_LAYER_TREE_OWNER_H_
#define UI_COMPOSITOR_LAYER_TREE_OWNER_H_
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "ui/compositor/compositor_export.h"
@@ -16,7 +18,7 @@ class Layer;
// Scoping object that owns a Layer and all its descendants.
class COMPOSITOR_EXPORT LayerTreeOwner {
public:
- explicit LayerTreeOwner(Layer* root);
+ explicit LayerTreeOwner(std::unique_ptr<Layer> root);
~LayerTreeOwner();
Layer* release() WARN_UNUSED_RESULT {
« no previous file with comments | « ui/compositor/layer_owner_unittest.cc ('k') | ui/compositor/layer_tree_owner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698