19 #ifndef MIR_GRAPHICS_ANDROID_HWC_DEVICE_H_
20 #define MIR_GRAPHICS_ANDROID_HWC_DEVICE_H_
36 class HWCVsyncCoordinator;
40 class HwcDevice :
public HWCCommonDevice
45 HwcDevice(std::shared_ptr<hwc_composer_device_1>
const& hwc_device,
47 std::shared_ptr<HWCVsyncCoordinator>
const& coordinator,
48 std::shared_ptr<SyncFileOps>
const&
sync_ops);
50 virtual void render_gl(SwappingGLContext
const& context);
51 virtual void render_gl_and_overlays(
52 SwappingGLContext
const& context,
54 std::function<
void(Renderable
const&)>
const& render_fn);
55 void post(Buffer
const& buffer);
59 void set_list_framebuffer(Buffer
const&);
60 void setup_layer_types();
63 std::shared_ptr<SyncFileOps>
const sync_ops;
64 bool list_needs_commit{
false};
sync_ops(sync_ops)
Definition: hwc_device.cpp:74
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:88