mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
8554952690
We create a base class called GenericFramebufferDevice, which defines all the virtual functions that must be implemented by a FramebufferDevice. Then, we make the VirtIO FramebufferDevice and other FramebufferDevice implementations inherit from it. The most important consequence of rearranging the classes is that we now have one IOCTL method, so all drivers should be committed to not override the IOCTL method or make their own IOCTLs of FramebufferDevice. All graphical IOCTLs are known to all FramebufferDevices, and it's up to the specific implementation whether to support them or discard them (so we require extensive usage of KResult and KResultOr, together with virtual characteristic functions). As a result, the interface is much cleaner and understandable to read. |
||
---|---|---|
.. | ||
Bochs | ||
Console | ||
Intel | ||
VirtIOGPU | ||
Definitions.h | ||
FramebufferDevice.cpp | ||
FramebufferDevice.h | ||
GenericFramebufferDevice.cpp | ||
GenericFramebufferDevice.h | ||
GenericGraphicsAdapter.h | ||
GraphicsManagement.cpp | ||
GraphicsManagement.h | ||
VGACompatibleAdapter.cpp | ||
VGACompatibleAdapter.h |