mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
Kernel/Graphics: Use VirtIO GPU3DDevice constructor indirectly
We shouldn't expose the VirtIO GPU3DDevice constructor as public method, so instead, let's use the usual pattern of a static construction method that uses the constructor within the method.
This commit is contained in:
parent
728358c599
commit
41283a2de6
Notes:
sideshowbarker
2024-07-17 11:17:06 +09:00
Author: https://github.com/supercomputer7
Commit: 41283a2de6
Pull-request: https://github.com/SerenityOS/serenity/pull/13845
3 changed files with 20 additions and 10 deletions
|
@ -465,7 +465,7 @@ void GraphicsAdapter::initialize_3d_device()
|
|||
{
|
||||
if (m_has_virgl_support) {
|
||||
MutexLocker locker(m_operation_lock);
|
||||
m_3d_device = MUST(DeviceManagement::try_create_device<VirtIOGPU::GPU3DDevice>(*this));
|
||||
m_3d_device = VirtIOGPU::GPU3DDevice::must_create(*this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue