VirtualBox

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


Ignore:
Timestamp:
Sep 5, 2024 8:03:42 AM (8 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

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r105968 r105971  
    1238312383  <interface
    1238412384    name="IHost" extends="$unknown"
    12385     uuid="89b05229-cecf-4ef6-816f-c0c13f2c4da3"
     12385    uuid="d5dcece0-b202-4416-a138-03502784cc07"
    1238612386    wsmap="managed"
    1238712387    rest="managed"
     
    1256612566    <attribute name="UTCTime" type="long long" readonly="yes">
    1256712567      <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
    12568     </attribute>
    12569 
    12570     <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
    12571       <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
    1257212568    </attribute>
    1257312569
  • trunk/src/VBox/Main/include/HostImpl.h

    r105254 r105971  
    130130    HRESULT getOSVersion(com::Utf8Str &aOSVersion);
    131131    HRESULT getUTCTime(LONG64 *aUTCTime);
    132     HRESULT getAcceleration3DAvailable(BOOL *aAcceleration3DAvailable);
    133132    HRESULT getVideoInputDevices(std::vector<ComPtr<IHostVideoInputDevice> > &aVideoInputDevices);
    134133    HRESULT getUpdateHost(ComPtr<IUpdateAgent> &aUpdate);
  • 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