VirtualBox

Changeset 105971 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 5, 2024 8:03:42 AM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164711
Message:

Main: Removed IHost::acceleration3DAvailable property, as this wasn't really doing anything useful and just will confuse API users. We now have ISystemProperties::supportedGraphicsFeatures. bugref:10749

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r105254 r105971  
    246246    /** @}  */
    247247
    248     /** 3D hardware acceleration supported? Tristate, -1 meaning not probed. */
    249     int                     f3DAccelerationSupported;
    250 
    251248    HostPowerService        *pHostPowerService;
    252249    /** Host's DNS information fetching */
     
    456453        m->fRecheckVTSupported = false;
    457454    }
    458 
    459 #ifdef VBOX_WITH_3D_ACCELERATION
    460     /* Test for 3D hardware acceleration support later when (if ever) need. */
    461     m->f3DAccelerationSupported = -1;
    462 #else
    463     m->f3DAccelerationSupported = false;
    464 #endif
    465455
    466456#if defined(VBOX_WITH_HOSTNETIF_API) && (defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD))
     
    14711461
    14721462    return S_OK;
    1473 }
    1474 
    1475 
    1476 HRESULT Host::getAcceleration3DAvailable(BOOL *aSupported)
    1477 {
    1478     HRESULT hrc = S_OK;
    1479     AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    1480     if (m->f3DAccelerationSupported != -1)
    1481         *aSupported = m->f3DAccelerationSupported;
    1482     else
    1483     {
    1484         alock.release();
    1485 
    1486 #ifdef VBOX_WITH_3D_ACCELERATION
    1487         bool fSupported = true; // Test if Vulkan or DirectX is appropriately supported on the host
    1488 #else
    1489         bool fSupported = false; /* shouldn't get here, but just in case. */
    1490 #endif
    1491         AutoWriteLock alock2(this COMMA_LOCKVAL_SRC_POS);
    1492 
    1493         m->f3DAccelerationSupported = fSupported;
    1494         alock2.release();
    1495         *aSupported = fSupported;
    1496     }
    1497 
    1498 #ifdef DEBUG_misha
    1499     AssertMsgFailed(("should not be here any more!\n"));
    1500 #endif
    1501 
    1502     return hrc;
    15031463}
    15041464
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette