19 #ifndef MIR_GRAPHICS_ANDROID_DISPLAY_ALLOCATOR_H_
20 #define MIR_GRAPHICS_ANDROID_DISPLAY_ALLOCATOR_H_
22 #include <system/window.h>
36 class DisplaySupportProvider;
38 class DisplayAllocator
41 DisplayAllocator() =
default;
42 virtual ~DisplayAllocator() {}
44 virtual std::shared_ptr<AndroidDisplay> create_gpu_display(
45 std::shared_ptr<ANativeWindow>
const&,
46 std::shared_ptr<DisplaySupportProvider>
const&,
47 std::shared_ptr<DisplayReport>
const&)
const = 0;
49 virtual std::shared_ptr<AndroidDisplay> create_hwc_display(
50 std::shared_ptr<HWCDevice>
const&,
51 std::shared_ptr<ANativeWindow>
const&,
52 std::shared_ptr<DisplayReport>
const&)
const = 0;
55 DisplayAllocator(DisplayAllocator
const&) =
delete;
56 DisplayAllocator& operator=(DisplayAllocator
const&) =
delete;