VirtualBox

Changeset 51836 in vbox for trunk/src


Ignore:
Timestamp:
Jul 3, 2014 9:40:21 AM (11 years ago)
Author:
vboxsync
Message:

DevVGA, Main: fFailOnResize parameter for pfnUpdateDisplayAll

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r51761 r51836  
    46224622 * Internal vgaPortUpdateDisplayAll worker called under pThis->CritSect.
    46234623 */
    4624 static int updateDisplayAll(PVGASTATE pThis)
     4624static int updateDisplayAll(PVGASTATE pThis, bool fFailOnResize)
    46254625{
    46264626    PPDMDEVINS pDevIns = pThis->CTX_SUFF(pDevIns);
     
    46454645    pThis->graphic_mode = -1; /* force full update */
    46464646
    4647     return vga_update_display(pThis, true, true, true,
     4647    return vga_update_display(pThis, true, fFailOnResize, true,
    46484648            pThis->pDrv, &pThis->graphic_mode);
    46494649}
    46504650
    46514651
    4652 int vgaUpdateDisplayAll(PVGASTATE pThis)
     4652int vgaUpdateDisplayAll(PVGASTATE pThis, bool fFailOnResize)
    46534653{
    46544654#ifdef DEBUG_sunlover
     
    46594659    AssertRC(rc);
    46604660
    4661     rc = updateDisplayAll(pThis);
     4661    rc = updateDisplayAll(pThis, fFailOnResize);
    46624662
    46634663    PDMCritSectLeave(&pThis->CritSect);
     
    46714671 * @see     PDMIKEYBOARDPORT::pfnUpdateDisplayAll() for details.
    46724672 */
    4673 static DECLCALLBACK(int) vgaPortUpdateDisplayAll(PPDMIDISPLAYPORT pInterface)
     4673static DECLCALLBACK(int) vgaPortUpdateDisplayAll(PPDMIDISPLAYPORT pInterface, bool fFailOnResize)
    46744674{
    46754675    PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface);
     
    46784678    /* This is called both in VBVA mode and normal modes. */
    46794679
    4680     return vgaUpdateDisplayAll(pThis);
     4680    return vgaUpdateDisplayAll(pThis, fFailOnResize);
    46814681}
    46824682
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r51461 r51836  
    651651int vboxVBVALoadStateDone (PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
    652652
    653 int vgaUpdateDisplayAll(PVGASTATE pThis);
     653int vgaUpdateDisplayAll(PVGASTATE pThis, bool fFailOnResize);
    654654
    655655# ifdef VBOX_WITH_VDMA
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r51816 r51836  
    11431143    }
    11441144
    1145     vgaUpdateDisplayAll(pVdma->pVGAState);
     1145    vgaUpdateDisplayAll(pVdma->pVGAState, /* fFailOnResize = */ false);
    11461146
    11471147    return VINF_SUCCESS;
     
    16061606
    16071607            /* do vgaUpdateDisplayAll right away */
    1608             vgaUpdateDisplayAll(pVdma->pVGAState);
     1608            vgaUpdateDisplayAll(pVdma->pVGAState, /* fFailOnResize = */ false);
    16091609
    16101610            return VBoxVDMAThreadTerm(&pVdma->Thread, NULL, NULL, false);
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r51762 r51836  
    15801580        /* Process any pending VGA device changes, resize. */
    15811581        Assert(!vbvaLockIsOwner());
    1582         mpDrv->pUpPort->pfnUpdateDisplay(mpDrv->pUpPort);
     1582        mpDrv->pUpPort->pfnUpdateDisplayAll(mpDrv->pUpPort, /* fFailOnResize = */ false);
    15831583    }
    15841584
     
    15901590    {
    15911591        Assert(!vbvaLockIsOwner());
    1592         mpDrv->pUpPort->pfnUpdateDisplay(mpDrv->pUpPort);
     1592        mpDrv->pUpPort->pfnUpdateDisplayAll(mpDrv->pUpPort, /* fFailOnResize = */ false);
    15931593    }
    15941594
     
    20472047        /* VideoAccel was disabled because of a failure, switching back to VGA updates. Redraw the screen. */
    20482048        Assert(!vbvaLockIsOwner());
    2049         mpDrv->pUpPort->pfnUpdateDisplay(mpDrv->pUpPort);
     2049        mpDrv->pUpPort->pfnUpdateDisplayAll(mpDrv->pUpPort, /* fFailOnResize = */ false);
    20502050    }
    20512051}
     
    32943294        {
    32953295            Assert(!pDisplay->vbvaLockIsOwner());
    3296             pDisplay->mpDrv->pUpPort->pfnUpdateDisplayAll(pDisplay->mpDrv->pUpPort);
     3296            pDisplay->mpDrv->pUpPort->pfnUpdateDisplayAll(pDisplay->mpDrv->pUpPort, /* fFailOnResize = */ true);
    32973297        }
    32983298        else
     
    45734573        /* Force full screen update, because VGA device must take control, do resize, etc. */
    45744574        Assert(!pThis->vbvaLockIsOwner());
    4575         pThis->mpDrv->pUpPort->pfnUpdateDisplay(pThis->mpDrv->pUpPort);
     4575        pThis->mpDrv->pUpPort->pfnUpdateDisplayAll(pThis->mpDrv->pUpPort, /* fFailOnResize = */ false);
    45764576    }
    45774577}
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