VirtualBox

Ignore:
Timestamp:
Feb 21, 2013 4:09:31 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL/OSX: presentation variations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r44784 r44787  
    7979#define FBO 1 /* Disable this to see how the output is without the FBO in the middle of the processing chain. */
    8080#if 0
     81# define CR_RENDER_FORCE_PRESENT_MAIN_THREAD /* force present schedule to main thread */
    8182# define SHOW_WINDOW_BACKGROUND 1 /* Define this to see the window background even if the window is clipped */
    8283# define DEBUG_VERBOSE /* Define this to get some debug info about the messages flow. */
     
    980981                        [m_pSharedGLCtx setView: self];
    981982                        m_fNeedViewportUpdate = true;
     983#ifdef CR_RENDER_FORCE_PRESENT_MAIN_THREAD
     984                                renderspuVBoxCompositorRelease(m_pWinInfo);
     985                                fCompositorAquired = false;
     986#endif
    982987                    }
    983988                }
     
    987992                        if (!fCompositorAquired)
    988993                        {
     994#ifndef CR_RENDER_FORCE_PRESENT_MAIN_THREAD
    989995                                /* 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 */
    990996                                int rc = renderspuVBoxCompositorTryAcquire(m_pWinInfo, &m_pCompositor);
     
    9941000                                }
    9951001                            else if (rc != VERR_SEM_BUSY)
     1002#endif
    9961003                            {
    9971004                                glFlush();
     
    9991006                                [self setNeedsDisplay:YES];
    10001007                            }
     1008#ifndef CR_RENDER_FORCE_PRESENT_MAIN_THREAD
    10011009                            else
    10021010                            {
     
    10041012                                DEBUG_MSG(("renderspuVBoxCompositorTryAcquire failed rc %d", rc));
    10051013                            }
     1014#endif
    10061015                        }
    1007                        
     1016               
     1017#ifdef CR_RENDER_FORCE_PRESENT_MAIN_THREAD
     1018                        Assert(!fCompositorAquired);
     1019#endif 
    10081020                        if (fCompositorAquired)
    10091021                        {
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