VirtualBox

Changeset 54770 in vbox


Ignore:
Timestamp:
Mar 16, 2015 12:15:01 AM (10 years ago)
Author:
vboxsync
Message:

VMSVGA3d: Some more cleanups.

File:
1 edited

Legend:

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

    r54769 r54770  
    29632963}
    29642964
     2965#ifndef IN_VMSVGA3D
    29652966void cocoaViewReparent(NativeNSViewRef pView, NativeNSViewRef pParentView)
    29662967{
     
    29752976    COCOA_LOG_FLOW(("cocoaViewReparent: returns\n"));
    29762977}
     2978#endif /* !IN_VMSVGA3D */
    29772979
    29782980void cocoaViewDestroy(NativeNSViewRef pView)
     
    29882990}
    29892991
     2992#ifndef IN_VMSVGA3D
    29902993void cocoaViewShow(NativeNSViewRef pView, GLboolean fShowIt)
    29912994{
     
    29983001    COCOA_LOG_FLOW(("cocoaViewShow: returns\n"));
    29993002}
     3003#endif /* IN_VMSVGA3D */
    30003004
    30013005void cocoaViewDisplay(NativeNSViewRef pView)
     
    30523056}
    30533057
    3054 #endif /* !IN_VMSVGA3D */
    3055 
    30563058void cocoaViewGetGeometry(NativeNSViewRef pView, int *px, int *py, int *pcx, int *pcy)
    30573059{
     
    30953097    NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
    30963098    NSOpenGLContext *pCtx;
    3097    
    3098     /* view should not necesserily have a context set */
     3099
     3100# ifdef IN_VMSVGA3D
     3101    Assert([(OverlayView *)pView glCtx]);
     3102
     3103# else
     3104    /* The view may not necesserily have a GL context set. */
    30993105    pCtx = [(OverlayView *)pView glCtx];
    31003106    if (!pCtx)
    31013107    {
    3102 #ifdef IN_VMSVGA3D /** @todo VMSVGA3 */
    3103         pCtx = NULL;
    3104 #else
    31053108        ContextInfo *pCtxInfo = renderspuDefaultSharedContextAcquire();
    31063109        if (!pCtxInfo)
     
    31143117       
    31153118        pCtx = pCtxInfo->context;
    3116 #endif
    31173119       
    31183120        [(OverlayView *)pView setGLCtx:pCtx];
    31193121    }
     3122# endif
    31203123   
    31213124    [(OverlayView *)pView presentComposition:pChangedEntry];
     
    31243127    COCOA_LOG_FLOW(("cocoaViewPresentComposition: returns\n"));
    31253128}
     3129
     3130#endif /* !IN_VMSVGA3D */
    31263131
    31273132void cocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx)
     
    31543159}
    31553160
     3161#ifndef IN_VMSVGA3D
     3162
    31563163GLboolean cocoaViewNeedsEmptyPresent(NativeNSViewRef pView)
    31573164{
     
    31773184}
    31783185
     3186#endif /* IN_VMSVGA3D */
    31793187
    31803188#ifdef IN_VMSVGA3D
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