~ci-train-bot/mir/mir-ubuntu-yakkety-landing-036

« back to all changes in this revision

Viewing changes to include/mir/compositor/compositor.h

  • Committer: Alan Griffiths
  • Date: 2012-06-20 11:29:43 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: alan@octopull.co.uk-20120620112943-8kene478w36mdf6l
Split classes into headers

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2012 Canonical Ltd.
 
3
 *
 
4
 * Permission to use, copy, modify, distribute, and sell this software
 
5
 * and its documentation for any purpose is hereby granted without
 
6
 * fee, provided that the above copyright notice appear in all copies
 
7
 * and that both that copyright notice and this permission notice
 
8
 * appear in supporting documentation, and that the name of
 
9
 * Canonical Ltd. not be used in advertising or publicity pertaining to
 
10
 * distribution of the software without specific, written prior permission.
 
11
 * Canonical Ltd. makes no representations about the suitability of this
 
12
 * software for any purpose. It is provided "as is" without express or
 
13
 * implied warranty.
 
14
 *
 
15
 * CANONICAL, LTD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
16
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
 
17
 * NO EVENT SHALL CANONICAL, LTD. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
18
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
 
19
 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
 
20
 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 
21
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
22
 *
 
23
 * Authored by: Alan Griffiths <alan@octopull.co.uk>
 
24
 */
 
25
 
 
26
#ifndef COMPOSITOR_H_
 
27
#define COMPOSITOR_H_
 
28
 
 
29
#include "drawer.h"
 
30
 
 
31
namespace mir
 
32
{
 
33
namespace surfaces
 
34
{
 
35
// scenegraph is the interface compositor uses onto the surface stack
 
36
class scenegraph;
 
37
}
 
38
 
 
39
namespace compositor
 
40
{
 
41
 
 
42
class compositor : public drawer
 
43
{
 
44
public:
 
45
        explicit compositor(surfaces::scenegraph* scenegraph) : scenegraph(scenegraph) {}
 
46
        virtual void render(graphics::display* display) { /*TODO*/ }
 
47
 
 
48
private:
 
49
        surfaces::scenegraph* scenegraph;
 
50
};
 
51
 
 
52
}}
 
53
 
 
54
#endif /* COMPOSITOR_H_ */