Changeset 54770 in vbox
- Timestamp:
- Mar 16, 2015 12:15:01 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r54769 r54770 2963 2963 } 2964 2964 2965 #ifndef IN_VMSVGA3D 2965 2966 void cocoaViewReparent(NativeNSViewRef pView, NativeNSViewRef pParentView) 2966 2967 { … … 2975 2976 COCOA_LOG_FLOW(("cocoaViewReparent: returns\n")); 2976 2977 } 2978 #endif /* !IN_VMSVGA3D */ 2977 2979 2978 2980 void cocoaViewDestroy(NativeNSViewRef pView) … … 2988 2990 } 2989 2991 2992 #ifndef IN_VMSVGA3D 2990 2993 void cocoaViewShow(NativeNSViewRef pView, GLboolean fShowIt) 2991 2994 { … … 2998 3001 COCOA_LOG_FLOW(("cocoaViewShow: returns\n")); 2999 3002 } 3003 #endif /* IN_VMSVGA3D */ 3000 3004 3001 3005 void cocoaViewDisplay(NativeNSViewRef pView) … … 3052 3056 } 3053 3057 3054 #endif /* !IN_VMSVGA3D */3055 3056 3058 void cocoaViewGetGeometry(NativeNSViewRef pView, int *px, int *py, int *pcx, int *pcy) 3057 3059 { … … 3095 3097 NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init]; 3096 3098 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. */ 3099 3105 pCtx = [(OverlayView *)pView glCtx]; 3100 3106 if (!pCtx) 3101 3107 { 3102 #ifdef IN_VMSVGA3D /** @todo VMSVGA3 */3103 pCtx = NULL;3104 #else3105 3108 ContextInfo *pCtxInfo = renderspuDefaultSharedContextAcquire(); 3106 3109 if (!pCtxInfo) … … 3114 3117 3115 3118 pCtx = pCtxInfo->context; 3116 #endif3117 3119 3118 3120 [(OverlayView *)pView setGLCtx:pCtx]; 3119 3121 } 3122 # endif 3120 3123 3121 3124 [(OverlayView *)pView presentComposition:pChangedEntry]; … … 3124 3127 COCOA_LOG_FLOW(("cocoaViewPresentComposition: returns\n")); 3125 3128 } 3129 3130 #endif /* !IN_VMSVGA3D */ 3126 3131 3127 3132 void cocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx) … … 3154 3159 } 3155 3160 3161 #ifndef IN_VMSVGA3D 3162 3156 3163 GLboolean cocoaViewNeedsEmptyPresent(NativeNSViewRef pView) 3157 3164 { … … 3177 3184 } 3178 3185 3186 #endif /* IN_VMSVGA3D */ 3179 3187 3180 3188 #ifdef IN_VMSVGA3D
Note:
See TracChangeset
for help on using the changeset viewer.