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

Side by Side Diff: ui/compositor/layer_tree_owner.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_COMPOSITOR_LAYER_TREE_OWNER_H_
6 #define UI_COMPOSITOR_LAYER_TREE_OWNER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/compositor/compositor_export.h"
11
12 namespace ui {
13
14 class Layer;
15
16 // Scoping object that owns a Layer and all its descendants.
17 class COMPOSITOR_EXPORT LayerTreeOwner {
18 public:
19 explicit LayerTreeOwner(Layer* root);
20 ~LayerTreeOwner();
21
22 Layer* release() WARN_UNUSED_RESULT {
23 Layer* root = root_;
24 root_ = NULL;
25 return root;
26 }
27
28 Layer* root() { return root_; }
29 const Layer* root() const { return root_; }
30
31 private:
32 Layer* root_;
33
34 DISALLOW_COPY_AND_ASSIGN(LayerTreeOwner);
35 };
36
37 } // namespace
38
39 #endif // UI_COMPOSITOR_LAYER_TREE_OWNER_H_
OLDNEW
« 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