Changeset 47623 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- Aug 8, 2013 9:19:43 PM (11 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_server.h
r47577 r47623 209 209 VBOXVR_SCR_COMPOSITOR_ENTRY CEntry; 210 210 VBOXVR_SCR_COMPOSITOR_ENTRY RootVrCEntry; 211 void *pvORInstance; 212 GLuint idPBO; 211 213 } CR_DISPLAY_ENTRY, *PCR_DISPLAY_ENTRY; 212 214 /**/ … … 238 240 GLuint aidColorTexs[2]; 239 241 240 void *pv OutputRedirectInstance;242 void *pvReserved; 241 243 242 244 CRCreateInfo_t CreateInfo; … … 250 252 GLuint idDepthStencilRB; 251 253 GLuint fboWidth, fboHeight; 252 GLuint idPBO;253 254 254 255 GLuint cDisabled; … … 260 261 GLboolean fRootVrOn; 261 262 GLboolean fForcePresentState; 263 GLboolean fOrPresentOnReenable; 262 264 263 265 GLboolean fUseDefaultDEntry; … … 364 366 { 365 367 CRHashTable * pTexIdToDemInfoMap; 368 uint32_t cEntered; 369 RTLISTNODE ReleasedList; 366 370 } CR_DISPLAY_ENTRY_MAP, *PCR_DISPLAY_ENTRY_MAP; 367 371 … … 378 382 379 383 void CrHlpFreeTexImage(CRContext *pCurCtx, GLuint idPBO, void *pvData); 380 void* CrHlpGetTexImage(CRContext *pCurCtx, PVBOXVR_TEXTUREpTexture, GLuint idPBO, GLenum enmFormat);381 void CrHlpPutTexImage(CRContext *pCurCtx, PVBOXVR_TEXTUREpTexture, GLenum enmFormat, void *pvData);384 void* CrHlpGetTexImage(CRContext *pCurCtx, const VBOXVR_TEXTURE *pTexture, GLuint idPBO, GLenum enmFormat); 385 void CrHlpPutTexImage(CRContext *pCurCtx, const VBOXVR_TEXTURE *pTexture, GLenum enmFormat, void *pvData); 382 386 383 387 /* */ -
trunk/src/VBox/GuestHost/OpenGL/include/cr_vreg.h
r47566 r47623 384 384 return VBoxVrCompositorEntryIsInList(&pEntry->Ce); 385 385 } 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);386 VBOXVREGDECL(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); 387 387 VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsSet(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const RTPOINT *pPos, uint32_t cRegions, const RTRECT *paRegions, bool fPosRelated, bool *pfChanged); 388 388 VBOXVREGDECL(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 1862 1862 1863 1863 1864 static int crVrScrCompositorEntryRegionsAdd(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, uint32_t cRegions, const RTRECT *paRegions, uint32_t *pfChangedFlags)1864 static 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) 1865 1865 { 1866 1866 uint32_t fChangedFlags = 0; … … 1900 1900 if (pfChangedFlags) 1901 1901 *pfChangedFlags = fChangedFlags; 1902 1903 if (ppReplacedScrEntry) 1904 *ppReplacedScrEntry = pReplacedScrEntry; 1905 1902 1906 return VINF_SUCCESS; 1903 1907 } … … 1987 1991 } 1988 1992 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)1993 VBOXVREGDECL(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) 1990 1994 { 1991 1995 int rc; … … 2028 2032 } 2029 2033 2030 rc = crVrScrCompositorEntryRegionsAdd(pCompositor, pEntry, cRegions, paRegions, &fChangeFlags);2034 rc = crVrScrCompositorEntryRegionsAdd(pCompositor, pEntry, cRegions, paRegions, ppReplacedScrEntry, &fChangeFlags); 2031 2035 if (!RT_SUCCESS(rc)) 2032 2036 { … … 2054 2058 if (fChangeFlags & VBOXVR_COMPOSITOR_CF_ENTRY_REPLACED) 2055 2059 fPosChanged = false; 2060 else if (ppReplacedScrEntry) 2061 *ppReplacedScrEntry = NULL; 2056 2062 2057 2063 if (pfChangeFlags)
Note:
See TracChangeset
for help on using the changeset viewer.