ladybird/Kernel/Graphics
Liav A 912b8ab965 Kernel/Graphics: Introduce the DisplayConnector class
The DisplayConnector class is meant to replace the FramebufferDevice
class. The advantage of this class over the FramebufferDevice class is:
1. It removes the mmap interface entirely. This interface is unsafe, as
multiple processes could try to use it, and when switching to and from
text console mode, there's no "good" way to revoke a memory mapping from
this interface, let alone when there are multiple processes that call
this interface. Therefore, in the DisplayConnector class there's no
implementation for this method at all.
2. The class uses a new real-world structure called ModeSetting, which
takes into account the fact that real hardware requires more than width,
height and pitch settings to mode-set the display resolution.
3. The class assumes all instances should supply some sort of EDID,
so it facilitates such mechanism to do so. Even if a given driver does
not know what is the actual EDID, it will ask to create default-generic
EDID blob.
3. This class shifts the responsibilies of switching between console
mode and graphical mode from a GraphicsAdapter to the DisplayConnector
class, so when doing the switch, the GraphicsManagement code actually
asks each DisplayConnector object to do the switch and doesn't rely on
the GraphicsAdapter objects at all.
2022-05-05 20:55:57 +02:00
..
Bochs Kernel/Graphics: Declare BochsGraphicsAdapter::get_edid private method 2022-05-05 20:55:57 +02:00
Console Kernel: Use original Console m_x and m_y in Text based implementations 2022-03-19 13:39:59 +00:00
Intel Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
VGA Kernel/Graphics: Don't try to enumerate PCI adapters if PCI is disabled 2022-03-02 18:41:54 +01:00
VirtIOGPU Kernel: Allow WorkQueue items allocation failures propagation 2022-04-20 19:47:18 +02:00
Definitions.h Kernel: Add ioctl to get the EDID from a framebuffer 2022-01-23 22:45:21 +00:00
DisplayConnector.cpp Kernel/Graphics: Introduce the DisplayConnector class 2022-05-05 20:55:57 +02:00
DisplayConnector.h Kernel/Graphics: Introduce the DisplayConnector class 2022-05-05 20:55:57 +02:00
FramebufferDevice.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
FramebufferDevice.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
GenericFramebufferDevice.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
GenericFramebufferDevice.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
GenericGraphicsAdapter.h Kernel: Add ioctl to get the EDID from a framebuffer 2022-01-23 22:45:21 +00:00
GraphicsManagement.cpp Kernel/Graphics: Introduce the DisplayConnector class 2022-05-05 20:55:57 +02:00
GraphicsManagement.h Kernel/Graphics: Introduce the DisplayConnector class 2022-05-05 20:55:57 +02:00
VGACompatibleAdapter.h Kernel/Graphics: Don't try to enumerate PCI adapters if PCI is disabled 2022-03-02 18:41:54 +01:00