19 #ifndef MIR_GRAPHICS_ANDROID_HWC_FACTORY_H_
20 #define MIR_GRAPHICS_ANDROID_HWC_FACTORY_H_
23 #include <hardware/hwcomposer.h>
33 class DisplaySupportProvider;
37 HWCFactory() =
default;
38 virtual ~HWCFactory() {}
40 virtual std::shared_ptr<HWCDevice> create_hwc_1_1(
41 std::shared_ptr<hwc_composer_device_1>
const& hwc_device,
42 std::shared_ptr<DisplaySupportProvider>
const& fb_device)
const = 0;
44 virtual std::shared_ptr<HWCDevice> create_hwc_1_0(
45 std::shared_ptr<hwc_composer_device_1>
const& hwc_device,
46 std::shared_ptr<DisplaySupportProvider>
const& fb_device)
const = 0;
48 HWCFactory(HWCFactory
const&) =
delete;
49 HWCFactory& operator=(HWCFactory
const&) =
delete;