| OLD | NEW |
| 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_ |
| OLD | NEW |