VirtualBox

Changeset 39074 in vbox


Ignore:
Timestamp:
Oct 21, 2011 11:52:15 AM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: do not re-create the framebuffer on every view switch (burn fix).

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

Legend:

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

    r38476 r39074  
    10471047}
    10481048
    1049 #ifdef VBOX_WITH_VIDEOHWACCEL
    10501049UIFrameBuffer* UISession::frameBuffer(ulong screenId) const
    10511050{
     
    10641063    return VERR_INVALID_PARAMETER;
    10651064}
    1066 #endif
    10671065
    10681066#ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r38348 r39074  
    147147    void setMouseIntegrated(bool fIsMouseIntegrated) { m_fIsMouseIntegrated = fIsMouseIntegrated; }
    148148
    149 #ifdef VBOX_WITH_VIDEOHWACCEL
    150149    /* return a persisted framebuffer for the given screen
    151150     * see comment below for the m_FrameBufferVector field */
     
    154153     * VERR_INVALID_PARAMETER - if screenId is invalid */
    155154    int setFrameBuffer(ulong screenId, UIFrameBuffer* pFrameBuffer);
    156 #endif
    157155
    158156signals:
     
    225223    UIMachineMenuBar *m_pMenuPool;
    226224
    227 #ifdef VBOX_WITH_VIDEOHWACCEL
    228     /* When 2D is enabled we do not re-create Framebuffers. This is done
    229      * 1. to avoid 2D command loss during the time slot when no framebuffer is
    230      *    assigned to the display
    231      * 2. to make it easier to preserve the current 2D state */
     225    /** Used for keeping track of the framebuffers accross view object
     226     * re-creation. */
    232227    QVector<UIFrameBuffer*> m_FrameBufferVector;
    233 #endif
    234228
    235229    /* Common variables: */
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