Changeset 44787 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Feb 21, 2013 4:09:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r44784 r44787 79 79 #define FBO 1 /* Disable this to see how the output is without the FBO in the middle of the processing chain. */ 80 80 #if 0 81 # define CR_RENDER_FORCE_PRESENT_MAIN_THREAD /* force present schedule to main thread */ 81 82 # define SHOW_WINDOW_BACKGROUND 1 /* Define this to see the window background even if the window is clipped */ 82 83 # define DEBUG_VERBOSE /* Define this to get some debug info about the messages flow. */ … … 980 981 [m_pSharedGLCtx setView: self]; 981 982 m_fNeedViewportUpdate = true; 983 #ifdef CR_RENDER_FORCE_PRESENT_MAIN_THREAD 984 renderspuVBoxCompositorRelease(m_pWinInfo); 985 fCompositorAquired = false; 986 #endif 982 987 } 983 988 } … … 987 992 if (!fCompositorAquired) 988 993 { 994 #ifndef CR_RENDER_FORCE_PRESENT_MAIN_THREAD 989 995 /* we do not want to be blocked with the GUI thread here, so only draw her eif we are really able to do that w/o bllocking */ 990 996 int rc = renderspuVBoxCompositorTryAcquire(m_pWinInfo, &m_pCompositor); … … 994 1000 } 995 1001 else if (rc != VERR_SEM_BUSY) 1002 #endif 996 1003 { 997 1004 glFlush(); … … 999 1006 [self setNeedsDisplay:YES]; 1000 1007 } 1008 #ifndef CR_RENDER_FORCE_PRESENT_MAIN_THREAD 1001 1009 else 1002 1010 { … … 1004 1012 DEBUG_MSG(("renderspuVBoxCompositorTryAcquire failed rc %d", rc)); 1005 1013 } 1014 #endif 1006 1015 } 1007 1016 1017 #ifdef CR_RENDER_FORCE_PRESENT_MAIN_THREAD 1018 Assert(!fCompositorAquired); 1019 #endif 1008 1020 if (fCompositorAquired) 1009 1021 {
Note:
See TracChangeset
for help on using the changeset viewer.