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"
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
> {
25 virtual scoped_refptr
<cc::Layer
> layer() = 0;
32 friend class base::RefCounted
<Layer
>;
34 DISALLOW_COPY_AND_ASSIGN(Layer
);
37 } // namespace android
40 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_LAYER_H_