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

Side by Side Diff: chrome/browser/android/compositor/layer/layer.h

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_ 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "cc/base/filter_operations.h"
12 #include "cc/layers/layer.h" 13 #include "cc/layers/layer.h"
13 #include "cc/output/filter_operations.h"
14 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
15 15
16 namespace android { 16 namespace android {
17 17
18 // A simple wrapper for cc::Layer. You can override this to contain 18 // A simple wrapper for cc::Layer. You can override this to contain
19 // layers and add functionalities to it. 19 // layers and add functionalities to it.
20 class Layer : public base::RefCounted<Layer> { 20 class Layer : public base::RefCounted<Layer> {
21 public: 21 public:
22 virtual scoped_refptr<cc::Layer> layer() = 0; 22 virtual scoped_refptr<cc::Layer> layer() = 0;
23 23
24 protected: 24 protected:
25 Layer() {} 25 Layer() {}
26 virtual ~Layer() {} 26 virtual ~Layer() {}
27 27
28 private: 28 private:
29 friend class base::RefCounted<Layer>; 29 friend class base::RefCounted<Layer>;
30 30
31 DISALLOW_COPY_AND_ASSIGN(Layer); 31 DISALLOW_COPY_AND_ASSIGN(Layer);
32 }; 32 };
33 33
34 } // namespace android 34 } // namespace android
35 35
36 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_ 36 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698