19 #ifndef MIR_GRAPHICS_ANDROID_HWC_FB_DEVICE_H_
20 #define MIR_GRAPHICS_ANDROID_HWC_FB_DEVICE_H_
23 #include "hardware/gralloc.h"
24 #include "hardware/fb.h"
28 #include <condition_variable>
41 HwcFbDevice(std::shared_ptr<HwcWrapper>
const& hwc_wrapper,
42 std::shared_ptr<framebuffer_device_t>
const& fb_device);
45 void commit(std::list<DisplayContents>
const& contents)
override;
49 void content_cleared()
override;
50 std::shared_ptr<HwcWrapper>
const hwc_wrapper;
51 std::shared_ptr<framebuffer_device_t>
const fb_device;
52 static int const num_displays{1};
55 std::mutex vsync_wait_mutex;
56 std::condition_variable vsync_trigger;
58 void notify_vsync(
DisplayName, std::chrono::nanoseconds);
std::chrono::milliseconds recommended_sleep() const override
All things Mir.
Definition: atomic_callback.h:25
Definition: display_device.h:52
bool compatible_renderlist(RenderableList const &renderlist) override
DisplayName
Definition: display_name.h:31
std::vector< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:79
HwcFbDevice(std::shared_ptr< HwcWrapper > const &hwc_wrapper, std::shared_ptr< framebuffer_device_t > const &fb_device)
Definition: hwc_fb_device.cpp:39
Definition: android_input_receiver.h:36
void commit(std::list< DisplayContents > const &contents) override
Definition: hwc_fb_device.h:38