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

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

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb LayerSettings parameter for cc::Layer construction. Created 5 years, 7 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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
11 #include "cc/output/filter_operations.h" 11 #include "cc/output/filter_operations.h"
12 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
13 13
14 namespace cc {
15 class LayerSettings;
16 }
17
14 namespace chrome { 18 namespace chrome {
15 namespace android { 19 namespace android {
16 20
17 // A simple wrapper for cc::Layer. You can override this to contain 21 // A simple wrapper for cc::Layer. You can override this to contain
18 // layers and add functionalities to it. 22 // layers and add functionalities to it.
19 class Layer : public base::RefCounted<Layer> { 23 class Layer : public base::RefCounted<Layer> {
20 public: 24 public:
21 virtual scoped_refptr<cc::Layer> layer() = 0; 25 virtual scoped_refptr<cc::Layer> layer() = 0;
22 26
23 protected: 27 protected:
24 Layer() {} 28 Layer() {}
25 virtual ~Layer() {} 29 virtual ~Layer() {}
26 30
27 private: 31 private:
28 friend class base::RefCounted<Layer>; 32 friend class base::RefCounted<Layer>;
29 33
30 DISALLOW_COPY_AND_ASSIGN(Layer); 34 DISALLOW_COPY_AND_ASSIGN(Layer);
31 }; 35 };
32 36
33 } // namespace android 37 } // namespace android
34 } // namespace chrome 38 } // namespace chrome
35 39
36 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_ 40 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698