mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
Kernel/Graphics: Remove unnecessary derived FramebufferDevice classes
It seems like overly-specific classes were written for no good reason. Instead of making each adapter to have its own unique FramebufferDevice class, let's generalize everything to keep implementation more consistent.
This commit is contained in:
parent
b8fd845885
commit
c1a4dfeffb
17 changed files with 127 additions and 246 deletions
|
@ -9,11 +9,9 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Devices/BlockDevice.h>
|
||||
#include <Kernel/Graphics/FramebufferDevice.h>
|
||||
#include <Kernel/PhysicalAddress.h>
|
||||
|
||||
namespace Kernel {
|
||||
class FramebufferDevice;
|
||||
class GraphicsDevice : public RefCounted<GraphicsDevice> {
|
||||
public:
|
||||
enum class Type {
|
||||
|
@ -30,6 +28,12 @@ public:
|
|||
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 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:
|
||||
GraphicsDevice() = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue