1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +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

@ -24,17 +24,6 @@ protected:
VGACompatibleAdapter() = default;
// ^GenericGraphicsAdapter
virtual bool modesetting_capable() const override { VERIFY_NOT_REACHED(); }
virtual bool double_framebuffering_capable() const override { VERIFY_NOT_REACHED(); }
virtual bool framebuffer_devices_initialized() const override { return false; }
virtual void initialize_framebuffer_devices() override { }
virtual void enable_consoles() override { }
virtual void disable_consoles() override { }
virtual bool try_to_set_resolution(size_t, size_t, size_t) override { VERIFY_NOT_REACHED(); }
virtual bool set_y_offset(size_t, size_t) override { VERIFY_NOT_REACHED(); }
ErrorOr<ByteBuffer> get_edid(size_t) const override { return Error::from_errno(ENOTSUP); }
RefPtr<GenericDisplayConnector> m_generic_display_connector;
};
}