VirtualBox

Changeset 71368 in vbox


Ignore:
Timestamp:
Mar 16, 2018 2:32:33 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121320
Message:

FE/Qt: bugref:9049: Detach VBoxGlobal from VBoxQGLOverlay stuff.

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  
    8686#  include "UIMachineWindowSeamless.h"
    8787# endif /* VBOX_WS_MAC */
    88 # ifdef VBOX_WITH_VIDEOHWACCEL
    89 #  include "VBoxFBOverlay.h"
    90 # endif /* VBOX_WITH_VIDEOHWACCEL */
    9188
    9289/* COM includes: */
     
    32503247    }
    32513248}
    3252 
    3253 #ifdef VBOX_WITH_VIDEOHWACCEL
    3254 /* static */
    3255 bool VBoxGlobal::isAcceleration2DVideoAvailable()
    3256 {
    3257     return VBoxQGLOverlay::isAcceleration2DVideoAvailable();
    3258 }
    3259 
    3260 /** additional video memory required for the best 2D support performance
    3261  *  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 #endif
    32693249
    32703250#ifdef VBOX_WITH_CRHGSMI
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r71367 r71368  
    418418    static QString documentsPath();
    419419
    420 #ifdef VBOX_WITH_VIDEOHWACCEL
    421     static bool isAcceleration2DVideoAvailable();
    422 
    423     /** additional video memory required for the best 2D support performance
    424      *  total amount of VRAM required is thus calculated as requiredVideoMemory + required2DOffscreenVideoMemory  */
    425     static quint64 required2DOffscreenVideoMemory();
    426 #endif
    427 
    428420#ifdef VBOX_WITH_CRHGSMI
    429421    static bool isWddmCompatibleOsType(const QString &strGuestOSTypeId);
     
    507499
    508500#ifdef VBOX_WS_WIN
    509     /** Wraps WinAPI ShutdownBlockReasonCreate function.
    510       * @remark  This function defined starting from Vista only. */
     501    /** Wraps WinAPI ShutdownBlockReasonCreate function. */
    511502    static BOOL ShutdownBlockReasonCreateAPI(HWND hWnd, LPCWSTR pwszReason);
    512503#endif
     
    599590
    600591#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. */
    604593    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. */
    607595    mutable int m_fDbgAutoShow;
    608596    /** Whether to show the command line window when m_fDbgAutoShow is set. */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r71355 r71368  
    4444# include "UIMouseHandler.h"
    4545# include "UIVMCloseDialog.h"
     46# include "VBoxFBOverlay.h"
    4647
    4748/* COM includes: */
     
    463464#ifdef VBOX_WITH_VIDEOHWACCEL
    464465    /* Need to force the QGL framebuffer in case 2D Video Acceleration is supported & enabled: */
    465     bool bAccelerate2DVideo = machine().GetAccelerate2DVideoEnabled() && VBoxGlobal::isAcceleration2DVideoAvailable();
     466    bool bAccelerate2DVideo = machine().GetAccelerate2DVideoEnabled() && VBoxQGLOverlay::isAcceleration2DVideoAvailable();
    466467#endif /* VBOX_WITH_VIDEOHWACCEL */
    467468
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r70911 r71368  
    248248    /* Log whether 2D video acceleration is enabled: */
    249249    LogRel(("GUI: 2D video acceleration is %s\n",
    250            machine().GetAccelerate2DVideoEnabled() && VBoxGlobal::isAcceleration2DVideoAvailable()
     250           machine().GetAccelerate2DVideoEnabled() && VBoxQGLOverlay::isAcceleration2DVideoAvailable()
    251251           ? "enabled" : "disabled"));
    252252#endif /* VBOX_WITH_VIDEOHWACCEL */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r71104 r71368  
    2828# include "UIErrorString.h"
    2929# include "VBoxGlobal.h"
     30# include "VBoxFBOverlay.h"
    3031
    3132/* COM includes: */
     
    520521            else if (m_pCheckbox2DVideo->isChecked() && m_f2DVideoAccelerationSupported)
    521522            {
    522                 uNeedBytes += VBoxGlobal::required2DOffscreenVideoMemory();
     523                uNeedBytes += VBoxQGLOverlay::required2DOffscreenVideoMemory();
    523524                if ((quint64)m_pEditorVideoMemorySize->value() * _1M < uNeedBytes)
    524525                {
     
    694695    m_pCheckbox3D->setEnabled(isMachineOffline());
    695696#ifdef VBOX_WITH_VIDEOHWACCEL
    696     m_pCheckbox2DVideo->setEnabled(isMachineOffline() && VBoxGlobal::isAcceleration2DVideoAvailable());
     697    m_pCheckbox2DVideo->setEnabled(isMachineOffline() && VBoxQGLOverlay::isAcceleration2DVideoAvailable());
    697698#else /* !VBOX_WITH_VIDEOHWACCEL */
    698699    m_pCheckbox2DVideo->hide();
     
    12061207    if (m_pCheckbox2DVideo->isChecked() && m_f2DVideoAccelerationSupported)
    12071208    {
    1208         uNeedMBytes += VBoxGlobal::required2DOffscreenVideoMemory() / _1M;
     1209        uNeedMBytes += VBoxQGLOverlay::required2DOffscreenVideoMemory() / _1M;
    12091210    }
    12101211#endif
Note: See TracChangeset for help on using the changeset viewer.

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