VirtualBox

Changeset 54178 in vbox for trunk


Ignore:
Timestamp:
Feb 12, 2015 1:11:19 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98229
Message:

FE/Qt: 7115: Runtime UI: Caching some of the COM stuff in frame-buffer.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r54104 r54178  
    8080    m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0;
    8181
     82    /* Assign display: */
     83    m_display = m_pMachineView->uisession()->display();
     84
    8285    /* Initialize critical-section: */
    8386    int rc = RTCritSectInit(&m_critSect);
     
    244247    CDisplaySourceBitmap sourceBitmap;
    245248    if (!vboxGlobal().isSeparateProcess())
    246         m_pMachineView->session().GetConsole().GetDisplay().QuerySourceBitmap(uScreenId, sourceBitmap);
     249        display().QuerySourceBitmap(uScreenId, sourceBitmap);
    247250
    248251    /* Lock access to frame-buffer: */
     
    728731        LONG yOrigin = 0;
    729732        KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
    730         CDisplay display = m_pMachineView->uisession()->display();
    731         display.GetScreenResolution(m_pMachineView->screenId(),
    732                                     ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus);
     733        display().GetScreenResolution(m_pMachineView->screenId(),
     734                                      ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus);
    733735
    734736        /* Remind user if necessary, ignore text and VGA modes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h

    r54104 r54178  
    2828
    2929/* COM includes: */
     30#include "CDisplay.h"
    3031#include "CDisplaySourceBitmap.h"
    3132
     
    6768      * @param pMachineView defines machine-view this frame-buffer is bounded to. */
    6869    HRESULT init(UIMachineView *pMachineView);
     70
     71    /** Returns the copy of the IDisplay wrapper. */
     72    CDisplay display() const { return m_display; }
    6973
    7074    /** Assigns machine-view frame-buffer will be bounded to.
     
    274278    int m_iHeight;
    275279
     280    /** Holds the copy of the IDisplay wrapper. */
     281    CDisplay m_display;
    276282    /** Source bitmap from IDisplay. */
    277283    CDisplaySourceBitmap m_sourceBitmap;
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