mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
912b8ab965
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. |
||
---|---|---|
.. | ||
Bochs | ||
Console | ||
Intel | ||
VGA | ||
VirtIOGPU | ||
Definitions.h | ||
DisplayConnector.cpp | ||
DisplayConnector.h | ||
FramebufferDevice.cpp | ||
FramebufferDevice.h | ||
GenericFramebufferDevice.cpp | ||
GenericFramebufferDevice.h | ||
GenericGraphicsAdapter.h | ||
GraphicsManagement.cpp | ||
GraphicsManagement.h | ||
VGACompatibleAdapter.h |