Changeset 51349 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- May 22, 2014 11:42:21 AM (11 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/render
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r51082 r51349 946 946 } 947 947 948 PCR_BLITTER renderspuVBoxPresentBlitterGetAndEnter( WindowInfo *window, int32_t i32MakeCurrentUserData )949 { 950 PCR_BLITTER pBlitter = renderspuVBoxPresentBlitterGet(window);948 PCR_BLITTER renderspuVBoxPresentBlitterGetAndEnter( WindowInfo *window, int32_t i32MakeCurrentUserData, bool fRedraw ) 949 { 950 PCR_BLITTER pBlitter = fRedraw ? window->pBlitter : renderspuVBoxPresentBlitterGet(window); 951 951 if (pBlitter) 952 952 { … … 1001 1001 } 1002 1002 1003 void renderspuVBoxPresentCompositionGeneric( WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR * pCompositor, const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry, int32_t i32MakeCurrentUserData ) 1004 { 1005 PCR_BLITTER pBlitter = renderspuVBoxPresentBlitterGetAndEnter(window, i32MakeCurrentUserData); 1003 void renderspuVBoxPresentCompositionGeneric( WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR * pCompositor, 1004 const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry, int32_t i32MakeCurrentUserData, 1005 bool fRedraw ) 1006 { 1007 PCR_BLITTER pBlitter = renderspuVBoxPresentBlitterGetAndEnter(window, i32MakeCurrentUserData, fRedraw); 1006 1008 if (!pBlitter) 1007 1009 return; -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h
r51064 r51349 418 418 extern int renderspuVBoxCompositorTryAcquire(WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR **ppCompositor); 419 419 extern void renderspuVBoxCompositorRelease( WindowInfo *window); 420 extern void renderspuVBoxPresentCompositionGeneric( WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR * pCompositor, const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry, int32_t i32MakeCurrentUserData ); 420 extern void renderspuVBoxPresentCompositionGeneric( WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR * pCompositor, 421 const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry, int32_t i32MakeCurrentUserData, 422 bool fRedraw); 421 423 extern PCR_BLITTER renderspuVBoxPresentBlitterGet( WindowInfo *window ); 422 424 void renderspuVBoxPresentBlitterCleanup( WindowInfo *window ); 423 425 extern int renderspuVBoxPresentBlitterEnter( PCR_BLITTER pBlitter, int32_t i32MakeCurrentUserData ); 424 extern PCR_BLITTER renderspuVBoxPresentBlitterGetAndEnter( WindowInfo *window, int32_t i32MakeCurrentUserData );426 extern PCR_BLITTER renderspuVBoxPresentBlitterGetAndEnter( WindowInfo *window, int32_t i32MakeCurrentUserData, bool fRedraw ); 425 427 extern PCR_BLITTER renderspuVBoxPresentBlitterEnsureCreated( WindowInfo *window, int32_t i32MakeCurrentUserData ); 426 428 void renderspuWindowTermBase( WindowInfo *window ); -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_agl.c
r50095 r51349 610 610 void renderspu_SystemVBoxPresentComposition( WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR * pCompositor, const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry ) 611 611 { 612 renderspuVBoxPresentCompositionGeneric(window, pCompositor, pChangedEntry, 0 );612 renderspuVBoxPresentCompositionGeneric(window, pCompositor, pChangedEntry, 0, false); 613 613 } 614 614 -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_glx.c
r51064 r51349 584 584 if (pCompositor) 585 585 { 586 renderspuVBoxPresentCompositionGeneric(pWindow, pCompositor, NULL, 0 );586 renderspuVBoxPresentCompositionGeneric(pWindow, pCompositor, NULL, 0, true); 587 587 renderspuVBoxCompositorRelease(pWindow); 588 588 } … … 1981 1981 if (RT_SUCCESS(rc)) 1982 1982 { 1983 renderspuVBoxPresentCompositionGeneric(window, pCompositor, pChangedEntry, 0 );1983 renderspuVBoxPresentCompositionGeneric(window, pCompositor, pChangedEntry, 0, false); 1984 1984 renderspuVBoxCompositorRelease(window); 1985 1985 } -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c
r50626 r51349 446 446 pWindow->redraw_device_context = hDC; 447 447 448 renderspuVBoxPresentCompositionGeneric(pWindow, pCompositor, NULL, 1 );448 renderspuVBoxPresentCompositionGeneric(pWindow, pCompositor, NULL, 1, true); 449 449 450 450 bRc = EndPaint(pWindow->hWnd, &Paint); … … 1295 1295 if (RT_SUCCESS(rc)) 1296 1296 { 1297 renderspuVBoxPresentCompositionGeneric(window, pCompositor, pChangedEntry, 0 );1297 renderspuVBoxPresentCompositionGeneric(window, pCompositor, pChangedEntry, 0, false); 1298 1298 renderspuVBoxCompositorRelease(window); 1299 1299 }
Note:
See TracChangeset
for help on using the changeset viewer.