mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![]() 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 |