Changeset 44922 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Mar 5, 2013 10:36:38 AM (12 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/render
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r44913 r44922 916 916 } 917 917 return NULL; 918 } 919 920 int renderspuVBoxCompositorLock(WindowInfo *window) 921 { 922 int rc = RTCritSectEnter(&window->CompositorLock); 923 AssertRC(rc); 924 return rc; 925 } 926 927 int renderspuVBoxCompositorUnlock(WindowInfo *window) 928 { 929 int rc = RTCritSectLeave(&window->CompositorLock); 930 AssertRC(rc); 931 return rc; 918 932 } 919 933 -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h
r44913 r44922 395 395 extern void renderspuVBoxCompositorSet( WindowInfo *window, struct VBOXVR_SCR_COMPOSITOR * pCompositor); 396 396 extern void renderspuVBoxCompositorClearAll(); 397 extern int renderspuVBoxCompositorLock(WindowInfo *window); 398 extern int renderspuVBoxCompositorUnlock(WindowInfo *window); 397 399 extern struct VBOXVR_SCR_COMPOSITOR * renderspuVBoxCompositorAcquire( WindowInfo *window); 398 400 extern int renderspuVBoxCompositorTryAcquire(WindowInfo *window, struct VBOXVR_SCR_COMPOSITOR **ppCompositor); -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r44880 r44922 267 267 - (void)updateViewportCS; 268 268 - (void)reshape; 269 - (void)reshapeLocked; 269 270 270 271 - (void)createDockTile; … … 841 842 } 842 843 843 - (void)reshape 844 - (void)reshapeLocked 844 845 { 845 846 NSRect parentFrame = NSZeroRect; … … 906 907 { 907 908 [self performSelectorMakingCurrent:m_pSharedGLCtx idSel:@selector(updateViewportCS)]; 909 } 910 } 911 912 - (void)reshape 913 { 914 int rc = renderspuVBoxCompositorLock(m_pWinInfo); 915 if (RT_SUCCESS(rc)) 916 { 917 [self reshapeLocked]; 918 renderspuVBoxCompositorUnlock(m_pWinInfo); 908 919 } 909 920 }
Note:
See TracChangeset
for help on using the changeset viewer.