19 #ifndef MIR_GRAPHICS_ANDROID_HWC_FB_DEVICE_H_
20 #define MIR_GRAPHICS_ANDROID_HWC_FB_DEVICE_H_
24 #include "hardware/gralloc.h"
25 #include "hardware/fb.h"
35 class HwcFbDevice :
public HWCCommonDevice
38 HwcFbDevice(std::shared_ptr<hwc_composer_device_1>
const& hwc_device,
40 std::shared_ptr<framebuffer_device_t>
const& fb_device,
41 std::shared_ptr<HWCVsyncCoordinator>
const& coordinator);
43 virtual void render_gl(SwappingGLContext
const& context);
44 virtual void render_gl_and_overlays(
45 SwappingGLContext
const& context,
47 std::function<
void(Renderable
const&)>
const& render_fn);
48 void post(Buffer
const& buffer);
55 std::shared_ptr<framebuffer_device_t>
const fb_device;
56 static int const num_displays{1};
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:88