~mir-team/mir/rename-everything

« back to all changes in this revision

Viewing changes to src/platforms/android/server/hwc_fb_device.cpp

  • Committer: Tarmac
  • Author(s): Kevin DuBois
  • Date: 2015-01-29 16:35:31 UTC
  • mfrom: (2215.3.26 pull-list-from-device)
  • Revision ID: tarmac-20150129163531-oklyqevk921mxuq3
android: pull the mga::LayerList instance from the mga::HwcDevice to the mga::DisplayBuffer.

Approved by Alan Griffiths, Alexandros Frantzis, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "mir/graphics/buffer.h"
26
26
#include "mir/graphics/android/native_buffer.h"
27
27
#include "swapping_gl_context.h"
 
28
#include "hwc_layerlist.h"
28
29
 
29
30
#include <boost/throw_exception.hpp>
30
31
#include <sstream>
39
40
    std::shared_ptr<framebuffer_device_t> const& fb_device) :
40
41
    hwc_wrapper(hwc_wrapper), 
41
42
    fb_device(fb_device),
42
 
    layer_list{std::make_shared<mga::Hwc10Adapter>(), {}},
43
43
    vsync_subscription{
44
44
        [hwc_wrapper, this]{
45
45
            using namespace std::placeholders;
55
55
{
56
56
}
57
57
 
58
 
void mga::HwcFbDevice::post_gl(SwappingGLContext const& context)
 
58
void mga::HwcFbDevice::commit(
 
59
    mga::DisplayName,
 
60
    mga::LayerList& layer_list,
 
61
    SwappingGLContext const& context,
 
62
    RenderableListCompositor const&)
59
63
{
60
64
    layer_list.setup_fb(context.last_rendered_buffer());
61
65
 
96
100
    vsync_trigger.notify_all();
97
101
}
98
102
 
99
 
bool mga::HwcFbDevice::post_overlays(
100
 
    SwappingGLContext const&,
101
 
    RenderableList const&,
102
 
    RenderableListCompositor const&)
 
103
bool mga::HwcFbDevice::compatible_renderlist(RenderableList const&)
103
104
{
104
105
    return false;
105
106
}