ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chrome / browser / android / compositor / layer / layer.h
blobb61bf900aa66b78f02d90efb2a1c080b8432ab36
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.
5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/layers/layer.h"
11 #include "cc/output/filter_operations.h"
12 #include "ui/gfx/geometry/size.h"
14 namespace chrome {
15 namespace android {
17 // A simple wrapper for cc::Layer. You can override this to contain
18 // layers and add functionalities to it.
19 class Layer : public base::RefCounted<Layer> {
20 public:
21 virtual scoped_refptr<cc::Layer> layer() = 0;
23 protected:
24 Layer() {}
25 virtual ~Layer() {}
27 private:
28 friend class base::RefCounted<Layer>;
30 DISALLOW_COPY_AND_ASSIGN(Layer);
33 } // namespace android
34 } // namespace chrome
36 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_