Changeset 20042 in vbox
- Timestamp:
- May 26, 2009 2:49:55 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r19968 r20042 111 111 #endif 112 112 113 //#ifdef VBOX_WITH_CROGL 114 //# include "cr_spu.h" 115 //#endif /* VBOX_WITH_CROGL */ 113 116 114 117 #include <iprt/asm.h> … … 249 252 } 250 253 } 254 255 f3DAccelerationSupported = true; 256 /* Test for 3D hardware acceleration support */ 257 // f3DAccelerationSupported = false; 258 //#ifdef VBOX_WITH_CROGL 259 // SPU *spu; 260 // spu = crSPULoad(NULL, 0, "render", NULL, NULL); 261 // if (spu) 262 // { 263 // crSPUUnloadChain(spu); 264 // f3DAccelerationSupported = true; 265 // } 266 // 267 //#endif /* VBOX_WITH_CROGL */ 251 268 252 269 setReady(true); … … 1223 1240 RTTIMESPEC now; 1224 1241 *aUTCTime = RTTimeSpecGetMilli(RTTimeNow(&now)); 1242 return S_OK; 1243 } 1244 1245 STDMETHODIMP Host::COMGETTER(Acceleration3DAvailable)(BOOL *aSupported) 1246 { 1247 CheckComArgOutPointerValid(aSupported); 1248 1249 AutoWriteLock alock(this); 1250 CHECK_READY(); 1251 1252 *aSupported = f3DAccelerationSupported; 1253 1225 1254 return S_OK; 1226 1255 } -
trunk/src/VBox/Main/Makefile.kmk
r19968 r20042 400 400 endif 401 401 402 ifdef VBOX_WITH_CROGL 403 VBoxSVC_INCS += $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/include 404 endif 402 405 403 406 win/VBoxSVC.rc_INCS = $(PATH_VBoxSVC) -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r20031 r20042 6968 6968 <interface 6969 6969 name="IHost" extends="$unknown" 6970 uuid=" 539d7194-2281-403e-9fb2-0f79a784966d"6970 uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1" 6971 6971 wsmap="managed" 6972 6972 > … … 7107 7107 <attribute name="UTCTime" type="long long" readonly="yes"> 7108 7108 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc> 7109 </attribute> 7110 7111 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes"> 7112 <desc>Returns true when the host supports 3D hardware acceleration.</desc> 7109 7113 </attribute> 7110 7114 -
trunk/src/VBox/Main/include/HostImpl.h
r19968 r20042 93 93 STDMETHOD(COMGETTER(OSVersion))(BSTR *version); 94 94 STDMETHOD(COMGETTER(UTCTime))(LONG64 *aUTCTime); 95 STDMETHOD(COMGETTER(Acceleration3DAvailable))(BOOL *aSupported); 95 96 96 97 // IHost methods … … 174 175 /* Features that can be queried with GetProcessorFeature */ 175 176 BOOL fVTxAMDVSupported, fLongModeSupported, fPAESupported; 177 /* 3D hardware acceleration supported? */ 178 BOOL f3DAccelerationSupported; 176 179 177 180 HostPowerService *mHostPowerService;
Note:
See TracChangeset
for help on using the changeset viewer.