19 #ifndef MIR_GRAPHICS_ANDROID_HWC_DEVICE_H_
20 #define MIR_GRAPHICS_ANDROID_HWC_DEVICE_H_
32 class HWCDevice :
public DisplaySupportProvider
35 HWCDevice() =
default;
36 virtual ~HWCDevice() noexcept = default;
39 virtual geometry::Size display_size() const = 0;
40 virtual geometry::
PixelFormat display_format() const = 0;
41 virtual
unsigned int number_of_framebuffers_available() const = 0;
42 virtual
void set_next_frontbuffer(std::shared_ptr<Buffer> const& buffer) = 0;
44 virtual
void commit_frame(EGLDisplay dpy, EGLSurface sur) = 0;
48 HWCDevice(HWCDevice const&) = delete;
49 HWCDevice& operator=(HWCDevice const&) = delete;