VirtualBox

Ignore:
Timestamp:
Oct 23, 2009 3:51:41 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53901
Message:

2d accel: fix unnecessary unlock g->h commands

File:
1 edited

Legend:

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

    r23951 r24044  
    31243124{
    31253125    VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf);
     3126#ifdef DEBUG_misha
     3127    /* for performance reasons we should receive unlock for visible surfaces only
     3128     * other surfaces receive unlock only once becoming visible, e.g. on DdFlip
     3129     * Ensure this is so*/
     3130    if(pSurf != mDisplay.getPrimary())
     3131    {
     3132        const OverlayList & overlays = mDisplay.overlays();
     3133        bool bFound = false;
     3134
     3135        for (OverlayList::const_iterator it = overlays.begin();
     3136             it != overlays.end(); ++ it)
     3137        {
     3138            VBoxVHWASurfList * pSurfList = *it;
     3139            if(pSurfList->current() == pSurf)
     3140            {
     3141                bFound = true;
     3142                break;
     3143            }
     3144        }
     3145
     3146        Assert(bFound);
     3147    }
     3148#endif
    31263149    VBOXQGLLOG_ENTER(("pSurf (0x%x)\n",pSurf));
    31273150    if(pCmd->u.in.xUpdatedMemValid)
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