19 #ifndef MIR_GRAPHICS_ANDROID_FB_DEVICE_H_
20 #define MIR_GRAPHICS_ANDROID_FB_DEVICE_H_
23 #include <hardware/gralloc.h>
24 #include <hardware/fb.h>
33 class FBDevice :
public DisplaySupportProvider
36 FBDevice(std::shared_ptr<framebuffer_device_t>
const&);
38 geometry::Size display_size()
const;
40 unsigned int number_of_framebuffers_available()
const;
42 void set_next_frontbuffer(std::shared_ptr<graphics::Buffer>
const& buffer);
43 void sync_to_display(
bool sync);
46 void commit_frame(EGLDisplay dpy, EGLSurface sur);
49 std::shared_ptr<framebuffer_device_t>
const fb_device;