~raof/mir/blowup-eventhub

« back to all changes in this revision

Viewing changes to include/platform/mir/graphics/display_buffer.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:
19
19
#ifndef MIR_GRAPHICS_DISPLAY_BUFFER_H_
20
20
#define MIR_GRAPHICS_DISPLAY_BUFFER_H_
21
21
 
22
 
#include "renderable.h"
23
22
#include <mir/geometry/rectangle.h>
24
23
#include <mir_toolkit/common.h>
25
24
 
33
32
{
34
33
 
35
34
class Buffer;
 
35
class Renderable;
36
36
 
37
37
/**
38
38
 * Interface to an output framebuffer.
57
57
        that Renderable via OpenGL, or via another method. If the Renderable is to be rendered
58
58
        via OpenGL, render_fn will be invoked on that Renderable. */
59
59
    virtual void render_and_post_update(
60
 
        std::list<Renderable> const& renderlist,
 
60
        std::list<std::shared_ptr<Renderable>> const& renderlist,
61
61
        std::function<void(Renderable const&)> const& render_fn) = 0;
62
62
 
63
63
    /** to be deprecated */