mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +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:
parent
d49a35df31
commit
b96b2fb9be
7 changed files with 3 additions and 89 deletions
|
@ -24,24 +24,13 @@ public:
|
|||
|
||||
virtual ~IntelNativeGraphicsAdapter() = default;
|
||||
|
||||
virtual bool vga_compatible() const override { return true; }
|
||||
|
||||
private:
|
||||
ErrorOr<void> initialize_adapter();
|
||||
|
||||
explicit IntelNativeGraphicsAdapter(PCI::Address);
|
||||
|
||||
// ^GenericGraphicsAdapter
|
||||
// FIXME: Remove all of these methods when we get rid of the FramebufferDevice class.
|
||||
virtual bool framebuffer_devices_initialized() const override { return false; }
|
||||
virtual bool modesetting_capable() const override { return true; }
|
||||
virtual bool vga_compatible() const override { return true; }
|
||||
virtual bool double_framebuffering_capable() const override { return true; }
|
||||
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(); }
|
||||
virtual void initialize_framebuffer_devices() override { }
|
||||
virtual void enable_consoles() override { }
|
||||
virtual void disable_consoles() override { }
|
||||
virtual ErrorOr<ByteBuffer> get_edid(size_t) const override { VERIFY_NOT_REACHED(); }
|
||||
|
||||
RefPtr<IntelNativeDisplayConnector> m_display_connector;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue