Changeset 71368 in vbox
- Timestamp:
- Mar 16, 2018 2:32:33 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 121320
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r71367 r71368 86 86 # include "UIMachineWindowSeamless.h" 87 87 # endif /* VBOX_WS_MAC */ 88 # ifdef VBOX_WITH_VIDEOHWACCEL89 # include "VBoxFBOverlay.h"90 # endif /* VBOX_WITH_VIDEOHWACCEL */91 88 92 89 /* COM includes: */ … … 3250 3247 } 3251 3248 } 3252 3253 #ifdef VBOX_WITH_VIDEOHWACCEL3254 /* static */3255 bool VBoxGlobal::isAcceleration2DVideoAvailable()3256 {3257 return VBoxQGLOverlay::isAcceleration2DVideoAvailable();3258 }3259 3260 /** additional video memory required for the best 2D support performance3261 * total amount of VRAM required is thus calculated as requiredVideoMemory + required2DOffscreenVideoMemory */3262 /* static */3263 quint64 VBoxGlobal::required2DOffscreenVideoMemory()3264 {3265 return VBoxQGLOverlay::required2DOffscreenVideoMemory();3266 }3267 3268 #endif3269 3249 3270 3250 #ifdef VBOX_WITH_CRHGSMI -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r71367 r71368 418 418 static QString documentsPath(); 419 419 420 #ifdef VBOX_WITH_VIDEOHWACCEL421 static bool isAcceleration2DVideoAvailable();422 423 /** additional video memory required for the best 2D support performance424 * total amount of VRAM required is thus calculated as requiredVideoMemory + required2DOffscreenVideoMemory */425 static quint64 required2DOffscreenVideoMemory();426 #endif427 428 420 #ifdef VBOX_WITH_CRHGSMI 429 421 static bool isWddmCompatibleOsType(const QString &strGuestOSTypeId); … … 507 499 508 500 #ifdef VBOX_WS_WIN 509 /** Wraps WinAPI ShutdownBlockReasonCreate function. 510 * @remark This function defined starting from Vista only. */ 501 /** Wraps WinAPI ShutdownBlockReasonCreate function. */ 511 502 static BOOL ShutdownBlockReasonCreateAPI(HWND hWnd, LPCWSTR pwszReason); 512 503 #endif … … 599 590 600 591 #ifdef VBOX_WITH_DEBUGGER_GUI 601 /** Whether the debugger should be accessible or not. 602 * Use --dbg, the env.var. VBOX_GUI_DBG_ENABLED, 603 * --debug or the env.var. VBOX_GUI_DBG_AUTO_SHOW to enable. */ 592 /** Whether the debugger should be accessible or not. */ 604 593 mutable int m_fDbgEnabled; 605 /** Whether to show the debugger automatically with the console. 606 * Use --debug or the env.var. VBOX_GUI_DBG_AUTO_SHOW to enable. */ 594 /** Whether to show the debugger automatically with the console. */ 607 595 mutable int m_fDbgAutoShow; 608 596 /** Whether to show the command line window when m_fDbgAutoShow is set. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r71355 r71368 44 44 # include "UIMouseHandler.h" 45 45 # include "UIVMCloseDialog.h" 46 # include "VBoxFBOverlay.h" 46 47 47 48 /* COM includes: */ … … 463 464 #ifdef VBOX_WITH_VIDEOHWACCEL 464 465 /* Need to force the QGL framebuffer in case 2D Video Acceleration is supported & enabled: */ 465 bool bAccelerate2DVideo = machine().GetAccelerate2DVideoEnabled() && VBox Global::isAcceleration2DVideoAvailable();466 bool bAccelerate2DVideo = machine().GetAccelerate2DVideoEnabled() && VBoxQGLOverlay::isAcceleration2DVideoAvailable(); 466 467 #endif /* VBOX_WITH_VIDEOHWACCEL */ 467 468 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r70911 r71368 248 248 /* Log whether 2D video acceleration is enabled: */ 249 249 LogRel(("GUI: 2D video acceleration is %s\n", 250 machine().GetAccelerate2DVideoEnabled() && VBox Global::isAcceleration2DVideoAvailable()250 machine().GetAccelerate2DVideoEnabled() && VBoxQGLOverlay::isAcceleration2DVideoAvailable() 251 251 ? "enabled" : "disabled")); 252 252 #endif /* VBOX_WITH_VIDEOHWACCEL */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r71104 r71368 28 28 # include "UIErrorString.h" 29 29 # include "VBoxGlobal.h" 30 # include "VBoxFBOverlay.h" 30 31 31 32 /* COM includes: */ … … 520 521 else if (m_pCheckbox2DVideo->isChecked() && m_f2DVideoAccelerationSupported) 521 522 { 522 uNeedBytes += VBox Global::required2DOffscreenVideoMemory();523 uNeedBytes += VBoxQGLOverlay::required2DOffscreenVideoMemory(); 523 524 if ((quint64)m_pEditorVideoMemorySize->value() * _1M < uNeedBytes) 524 525 { … … 694 695 m_pCheckbox3D->setEnabled(isMachineOffline()); 695 696 #ifdef VBOX_WITH_VIDEOHWACCEL 696 m_pCheckbox2DVideo->setEnabled(isMachineOffline() && VBox Global::isAcceleration2DVideoAvailable());697 m_pCheckbox2DVideo->setEnabled(isMachineOffline() && VBoxQGLOverlay::isAcceleration2DVideoAvailable()); 697 698 #else /* !VBOX_WITH_VIDEOHWACCEL */ 698 699 m_pCheckbox2DVideo->hide(); … … 1206 1207 if (m_pCheckbox2DVideo->isChecked() && m_f2DVideoAccelerationSupported) 1207 1208 { 1208 uNeedMBytes += VBox Global::required2DOffscreenVideoMemory() / _1M;1209 uNeedMBytes += VBoxQGLOverlay::required2DOffscreenVideoMemory() / _1M; 1209 1210 } 1210 1211 #endif
Note:
See TracChangeset
for help on using the changeset viewer.