VirtualBox

Changeset 2106 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Apr 16, 2007 3:25:48 PM (18 years ago)
Author:
vboxsync
Message:

Do not block EMT while resizing the framebuffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r470 r2106  
    5959
    6060    // public methods only for internal purposes
    61     void handleDisplayResize (uint32_t bpp, void *pvVRAM, uint32_t cbLine, int w, int h);
     61    int handleDisplayResize (uint32_t bpp, void *pvVRAM, uint32_t cbLine, int w, int h);
    6262    void handleDisplayUpdate (int x, int y, int cx, int cy);
    6363    IFramebuffer *getFramebuffer()
     
    140140    static DECLCALLBACK(int)   drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle);
    141141    static DECLCALLBACK(void)  drvDestruct(PPDMDRVINS pDrvIns);
    142     static DECLCALLBACK(void)  displayResizeCallback(PPDMIDISPLAYCONNECTOR pInterface, uint32_t bpp, void *pvVRAM, uint32_t cbLine, uint32_t cx, uint32_t cy);
     142    static DECLCALLBACK(int)   displayResizeCallback(PPDMIDISPLAYCONNECTOR pInterface, uint32_t bpp, void *pvVRAM, uint32_t cbLine, uint32_t cx, uint32_t cy);
    143143    static DECLCALLBACK(void)  displayUpdateCallback(PPDMIDISPLAYCONNECTOR pInterface,
    144144                                                     uint32_t x, uint32_t y, uint32_t cx, uint32_t cy);
     
    159159    /** bitmask of acceleration operations supported by current framebuffer */
    160160    ULONG mSupportedAccelOps;
    161     RTSEMEVENTMULTI mResizeSem;
    162161    RTSEMEVENTMULTI mUpdateSem;
    163162
     
    186185    void vbvaReleaseCmd (VBVACMDHDR *pHdr, int32_t cbCmd);
    187186
    188     void callFramebufferResize (FramebufferPixelFormat_T pixelFormat, void *pvVRAM, uint32_t cbLine, int w, int h);
     187    void handleResizeCompletedEMT (void);
     188    volatile uint32_t mu32ResizeStatus;
     189   
     190    enum {
     191        ResizeStatus_Void,
     192        ResizeStatus_InProgress,
     193        ResizeStatus_UpdateDisplayData
     194    };
    189195};
    190196
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