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:
Liav A 2022-04-30 09:39:03 +03:00 committed by Andreas Kling
commit 41283a2de6
Notes: sideshowbarker 2024-07-17 11:17:06 +09:00
3 changed files with 20 additions and 10 deletions

View file

@ -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);
}
}