~mir-team/mir/in-process-egl+input-conglomeration

« back to all changes in this revision

Viewing changes to src/server/graphics/android/fb_device.cpp

Merged trunk and fixed issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "mir/compositor/buffer.h"
20
20
 
21
21
#include "fb_device.h"
22
 
#include "android_buffer.h"
 
22
#include "buffer.h"
23
23
#include "android_format_conversion-inl.h"
24
24
 
25
25
#include <algorithm>
26
26
#include <boost/throw_exception.hpp>
27
27
#include <stdexcept>
28
28
 
 
29
namespace mc=mir::compositor;
29
30
namespace mga=mir::graphics::android;
30
31
namespace geom=mir::geometry;
31
32
 
34
35
{
35
36
}
36
37
 
37
 
void mga::FBDevice::set_next_frontbuffer(std::shared_ptr<AndroidBuffer> const& buffer)
 
38
void mga::FBDevice::set_next_frontbuffer(std::shared_ptr<mc::Buffer> const& buffer)
38
39
{
39
40
    auto handle = buffer->native_buffer_handle();
40
41
    if (fb_device->post(fb_device.get(), handle->handle) != 0)