19 #ifndef MIR_GRAPHICS_ANDROID_HWC_COMMON_DEVICE_H_
20 #define MIR_GRAPHICS_ANDROID_HWC_COMMON_DEVICE_H_
23 #include <hardware/hwcomposer.h>
27 #include <condition_variable>
36 class HWCVsyncCoordinator;
37 class HWCCommonDevice;
41 HWCCommonDevice*
self;
44 class HWCCommonDevice :
public DisplayDevice
47 virtual ~HWCCommonDevice() noexcept;
54 HWCCommonDevice(std::shared_ptr<hwc_composer_device_1> const& hwc_device,
55 std::shared_ptr<HWCVsyncCoordinator> const& coordinator);
57 std::shared_ptr<HWCVsyncCoordinator> const coordinator;
58 std::unique_lock<std::mutex> lock_unblanked();
61 int turn_screen_on() const noexcept(
true);
62 int turn_screen_off() const noexcept(true);
64 HWCCallbacks callbacks;
66 std::shared_ptr<hwc_composer_device_1> const hwc_device;
68 std::mutex blanked_mutex;
69 std::condition_variable blanked_cond;
true
Definition: display_configuration.cpp:30