1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

Kernel/Graphics: Simplify the GenericGraphicsAdapter class

The old methods are already can be considered deprecated, and now after
we removed framebuffer devices entirely, we can safely remove these
methods too, which simplfies the GenericGraphicsAdapter class a lot.
This commit is contained in:
Liav A 2022-04-30 15:54:23 +03:00 committed by Andreas Kling
parent d49a35df31
commit b96b2fb9be
7 changed files with 3 additions and 89 deletions

View file

@ -18,26 +18,11 @@ class GenericGraphicsAdapter
, public Weakable<GenericGraphicsAdapter> {
public:
virtual ~GenericGraphicsAdapter() = default;
virtual void initialize_framebuffer_devices() = 0;
virtual void enable_consoles() = 0;
virtual void disable_consoles() = 0;
bool consoles_enabled() const { return m_consoles_enabled; }
virtual bool framebuffer_devices_initialized() const = 0;
virtual bool modesetting_capable() const = 0;
virtual bool double_framebuffering_capable() const = 0;
virtual bool vga_compatible() const = 0;
virtual ErrorOr<ByteBuffer> get_edid(size_t output_port_index) const = 0;
virtual bool try_to_set_resolution(size_t output_port_index, size_t width, size_t height) = 0;
virtual bool set_y_offset(size_t output_port_index, size_t y) = 0;
protected:
GenericGraphicsAdapter() = default;
bool m_consoles_enabled { false };
};
}