Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / android / compositor / layer / layer.h
blob5bbbede12796e788dec191a80649b62529696485
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 cc {
15 class LayerSettings;
18 namespace chrome {
19 namespace android {
21 // A simple wrapper for cc::Layer. You can override this to contain
22 // layers and add functionalities to it.
23 class Layer : public base::RefCounted<Layer> {
24 public:
25 virtual scoped_refptr<cc::Layer> layer() = 0;
27 protected:
28 Layer() {}
29 virtual ~Layer() {}
31 private:
32 friend class base::RefCounted<Layer>;
34 DISALLOW_COPY_AND_ASSIGN(Layer);
37 } // namespace android
38 } // namespace chrome
40 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_