VirtualBox

Changeset 49535 in vbox for trunk


Ignore:
Timestamp:
Nov 18, 2013 3:41:20 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90713
Message:

vhwa: cleanup fixes

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

Legend:

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

    r49485 r49535  
    25952595    else
    25962596    {
     2597        Assert(pList);
    25972598        Assert(pList->size() >= 1);
    25982599        if(pList->size() > 1)
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h

    r49431 r49535  
    10161016
    10171017    VBoxVHWASurfList() : mCurrent(NULL) {}
     1018
     1019    void moveTo(VBoxVHWASurfList *pDst)
     1020    {
     1021        for (SurfList::iterator it = mSurfaces.begin();
     1022             it != mSurfaces.end(); it = mSurfaces.begin())
     1023        {
     1024            pDst->add((*it));
     1025        }
     1026
     1027        Assert(empty());
     1028    }
     1029
    10181030    void add(VBoxVHWASurfaceBase *pSurf)
    10191031    {
     
    10261038        pSurf->setComplexList(this);
    10271039    }
    1028 
     1040/*
    10291041    void clear()
    10301042    {
     
    10371049        mCurrent = NULL;
    10381050    }
    1039 
     1051*/
    10401052    size_t size() const {return mSurfaces.size(); }
    10411053
     
    10781090        VBoxVHWASurfaceBase * old = mSurfVGA;
    10791091        mSurfVGA = pVga;
    1080         mPrimary.clear();
     1092        if (!mPrimary.empty())
     1093        {
     1094            VBoxVHWASurfList *pNewList = new VBoxVHWASurfList();
     1095            mPrimary.moveTo(pNewList);
     1096            Assert(mPrimary.empty());
     1097        }
    10811098        if(pVga)
    10821099        {
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