~raof/mir/blowup-eventhub

« back to all changes in this revision

Viewing changes to src/platform/graphics/android/hwc_layerlist.h

  • Committer: Tarmac
  • Author(s): Kevin DuBois
  • Date: 2014-01-29 00:49:23 UTC
  • mfrom: (1329.1.42 renderable)
  • Revision ID: tarmac-20140129004923-a52iu4phmbzmv9ot
android: split out HWC layers into their own file and add a mga::CompositionLayer type that depends on the interface mg::Renderable.

Approved by Andreas Pokorny, Alan Griffiths, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "mir/graphics/android/fence.h"
23
23
#include "mir/geometry/rectangle.h"
 
24
#include "hwc_layers.h"
24
25
#include <hardware/hwcomposer.h>
25
26
#include <memory>
26
27
#include <vector>
37
38
namespace android
38
39
{
39
40
 
40
 
struct HWCLayer : public hwc_layer_1
41
 
{
42
 
    virtual ~HWCLayer() = default;
43
 
 
44
 
    HWCLayer& operator=(HWCLayer const& layer);
45
 
    HWCLayer(HWCLayer const& layer);
46
 
 
47
 
protected:
48
 
    HWCLayer(int type, buffer_handle_t handle, int width, int height, int layer_flags);
49
 
 
50
 
    hwc_rect_t visible_rect;
51
 
};
52
 
 
53
 
struct CompositionLayer : public HWCLayer
54
 
{
55
 
    CompositionLayer(int layer_flags);
56
 
    CompositionLayer(NativeBuffer const&, int layer_flags);
57
 
};
58
 
 
59
 
struct FramebufferLayer : public HWCLayer
60
 
{
61
 
    FramebufferLayer();
62
 
    FramebufferLayer(NativeBuffer const&);
63
 
};
64
 
 
65
41
class LayerList
66
42
{
67
43
public: