VirtualBox

Changeset 47623 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Aug 8, 2013 9:19:43 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: output redirect fixes

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_server.h

    r47577 r47623  
    209209    VBOXVR_SCR_COMPOSITOR_ENTRY CEntry;
    210210    VBOXVR_SCR_COMPOSITOR_ENTRY RootVrCEntry;
     211    void *pvORInstance;
     212    GLuint idPBO;
    211213} CR_DISPLAY_ENTRY, *PCR_DISPLAY_ENTRY;
    212214/**/
     
    238240    GLuint aidColorTexs[2];
    239241
    240     void *pvOutputRedirectInstance;
     242    void *pvReserved;
    241243
    242244    CRCreateInfo_t CreateInfo;
     
    250252    GLuint idDepthStencilRB;
    251253    GLuint fboWidth, fboHeight;
    252     GLuint idPBO;
    253254
    254255    GLuint cDisabled;
     
    260261    GLboolean fRootVrOn;
    261262    GLboolean fForcePresentState;
     263    GLboolean fOrPresentOnReenable;
    262264
    263265    GLboolean fUseDefaultDEntry;
     
    364366{
    365367    CRHashTable * pTexIdToDemInfoMap;
     368    uint32_t cEntered;
     369    RTLISTNODE ReleasedList;
    366370} CR_DISPLAY_ENTRY_MAP, *PCR_DISPLAY_ENTRY_MAP;
    367371
     
    378382
    379383void CrHlpFreeTexImage(CRContext *pCurCtx, GLuint idPBO, void *pvData);
    380 void* CrHlpGetTexImage(CRContext *pCurCtx, PVBOXVR_TEXTURE pTexture, GLuint idPBO, GLenum enmFormat);
    381 void CrHlpPutTexImage(CRContext *pCurCtx, PVBOXVR_TEXTURE pTexture, GLenum enmFormat, void *pvData);
     384void* CrHlpGetTexImage(CRContext *pCurCtx, const VBOXVR_TEXTURE *pTexture, GLuint idPBO, GLenum enmFormat);
     385void CrHlpPutTexImage(CRContext *pCurCtx, const VBOXVR_TEXTURE *pTexture, GLenum enmFormat, void *pvData);
    382386
    383387/* */
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_vreg.h

    r47566 r47623  
    384384    return VBoxVrCompositorEntryIsInList(&pEntry->Ce);
    385385}
    386 VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsAdd(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const RTPOINT *pPos, uint32_t cRegions, const RTRECT *paRegions, bool fPosRelated, uint32_t *pfChangeFlags);
     386VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsAdd(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const RTPOINT *pPos, uint32_t cRegions, const RTRECT *paRegions, bool fPosRelated, VBOXVR_SCR_COMPOSITOR_ENTRY **ppReplacedScrEntry, uint32_t *pfChangeFlags);
    387387VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsSet(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const RTPOINT *pPos, uint32_t cRegions, const RTRECT *paRegions, bool fPosRelated, bool *pfChanged);
    388388VBOXVREGDECL(int) CrVrScrCompositorEntryListIntersect(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const VBOXVR_LIST *pList2, bool *pfChanged);
  • trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp

    r47566 r47623  
    18621862
    18631863
    1864 static int crVrScrCompositorEntryRegionsAdd(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, uint32_t cRegions, const RTRECT *paRegions, uint32_t *pfChangedFlags)
     1864static int crVrScrCompositorEntryRegionsAdd(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, uint32_t cRegions, const RTRECT *paRegions, VBOXVR_SCR_COMPOSITOR_ENTRY **ppReplacedScrEntry, uint32_t *pfChangedFlags)
    18651865{
    18661866    uint32_t fChangedFlags = 0;
     
    19001900    if (pfChangedFlags)
    19011901        *pfChangedFlags = fChangedFlags;
     1902
     1903    if (ppReplacedScrEntry)
     1904        *ppReplacedScrEntry = pReplacedScrEntry;
     1905
    19021906    return VINF_SUCCESS;
    19031907}
     
    19871991}
    19881992
    1989 VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsAdd(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const RTPOINT *pPos, uint32_t cRegions, const RTRECT *paRegions, bool fPosRelated, uint32_t *pfChangeFlags)
     1993VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsAdd(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const RTPOINT *pPos, uint32_t cRegions, const RTRECT *paRegions, bool fPosRelated, VBOXVR_SCR_COMPOSITOR_ENTRY **ppReplacedScrEntry, uint32_t *pfChangeFlags)
    19901994{
    19911995    int rc;
     
    20282032    }
    20292033
    2030     rc = crVrScrCompositorEntryRegionsAdd(pCompositor, pEntry, cRegions, paRegions, &fChangeFlags);
     2034    rc = crVrScrCompositorEntryRegionsAdd(pCompositor, pEntry, cRegions, paRegions, ppReplacedScrEntry, &fChangeFlags);
    20312035    if (!RT_SUCCESS(rc))
    20322036    {
     
    20542058    if (fChangeFlags & VBOXVR_COMPOSITOR_CF_ENTRY_REPLACED)
    20552059        fPosChanged = false;
     2060    else if (ppReplacedScrEntry)
     2061        *ppReplacedScrEntry = NULL;
    20562062
    20572063    if (pfChangeFlags)
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