VirtualBox

Changeset 56333 in vbox for trunk


Ignore:
Timestamp:
Jun 10, 2015 11:32:01 AM (9 years ago)
Author:
vboxsync
Message:

Devices/Graphics: Whitespace.

Location:
trunk/src/VBox/Devices/Graphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.m

    r56292 r56333  
    3636*******************************************************************************/
    3737/** @def USE_NSOPENGLVIEW
    38  * Define this to experiment with using NSOpenGLView instead 
    39  * of NSView.  There are transparency issues with the former, 
     38 * Define this to experiment with using NSOpenGLView instead
     39 * of NSView.  There are transparency issues with the former,
    4040 * so for the time being we're using the latter.  */
    4141#if 0
     
    5454@public
    5555    /* in */
    56     NativeNSViewRef             pParentView; 
     56    NativeNSViewRef             pParentView;
    5757    uint32_t                    cx;
    5858    uint32_t                    cy;
     
    7070 * The overlay view.
    7171 */
    72 @interface VMSVGA3DOverlayView 
     72@interface VMSVGA3DOverlayView
    7373#ifdef USE_NSOPENGLVIEW
    7474    : NSOpenGLView
     
    9090    NSPoint          m_Pos;
    9191    NSSize           m_Size;
    92    
     92
    9393    /** This is necessary for clipping on the root window */
    9494    NSRect           m_RootRect;
     
    110110
    111111#endif
    112 /* Overridden: */   
     112/* Overridden: */
    113113- (void)viewDidMoveToWindow;
    114114- (void)viewDidMoveToSuperview;
     
    167167        {
    168168            /*
    169              * If we have no shared GL context, we use the one that NSOpenGLView create. Otherwise, 
    170              * we replace it.  (If we don't call openGLContext, it won't yet have been instantiated, 
     169             * If we have no shared GL context, we use the one that NSOpenGLView create. Otherwise,
     170             * we replace it.  (If we don't call openGLContext, it won't yet have been instantiated,
    171171             * so there is no unecessary contexts created here when pSharedCtx != NULL.)
    172172             */
     
    190190            if (pCtx)
    191191            {
    192                 /* 
     192                /*
    193193                 * Attach the view to the parent.
    194194                 */
     
    240240    m_Size           = frame.size;
    241241    m_RootRect       = NSMakeRect(0, 0, m_Size.width, m_Size.height);
    242    
     242
    243243#ifdef USE_NSOPENGLVIEW
    244244    self = [super initWithFrame:frame pixelFormat:pFmt];
     
    324324
    325325    /*
    326      * Not doing any complicate stuff here yet, hoping that we'll get correctly 
     326     * Not doing any complicate stuff here yet, hoping that we'll get correctly
    327327     * resized when the parent view changes...
    328328     */
     
    340340
    341341
    342 /** 
    343  * Changes to the OpenGL context associated with the view. 
    344  * @returns Previous OpenGL context. 
    345  */ 
     342/**
     343 * Changes to the OpenGL context associated with the view.
     344 * @returns Previous OpenGL context.
     345 */
    346346- (NSOpenGLContext *)makeCurrentGLContext
    347347{
     
    359359
    360360/**
    361  * Restores the previous OpenGL context after 
    362  * makeCurrentGLContext. 
    363  * 
     361 * Restores the previous OpenGL context after
     362 * makeCurrentGLContext.
     363 *
    364364 * @param pSavedCtx     The makeCurrentGLContext return value.
    365365 */
     
    415415#endif /* USE_NSOPENGLVIEW */
    416416
    417 /* 
     417/*
    418418 * Overridden NSOpenGLView / NSView methods:
    419419 */
     
    435435-(void)resizeWithOldSuperviewSize:(NSSize)oldBoundsSize
    436436{
    437     LogFlow(("OvlView(%p) resizeWithOldSuperviewSize: %d,%d -> %d,%d\n", (void *)self, 
     437    LogFlow(("OvlView(%p) resizeWithOldSuperviewSize: %d,%d -> %d,%d\n", (void *)self,
    438438             (int)oldBoundsSize.width, (int)oldBoundsSize.height, (int)[self bounds].size.width, (int)[self bounds].size.height));
    439439    [super resizeWithOldSuperviewSize:oldBoundsSize];
     
    474474                                                           NativeNSOpenGLContextRef pSharedCtx, bool fOtherProfile)
    475475{
    476     LogFlow(("vmsvga3dCocoaCreateViewAndContext: pParentView=%d size=%d,%d pSharedCtx=%p fOtherProfile=%RTbool\n", 
     476    LogFlow(("vmsvga3dCocoaCreateViewAndContext: pParentView=%d size=%d,%d pSharedCtx=%p fOtherProfile=%RTbool\n",
    477477             (void *)pParentView, cx, cy, (void *)pSharedCtx, fOtherProfile));
    478478    NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
     
    571571    }
    572572    else
    573         [NSOpenGLContext clearCurrentContext];
     573        [NSOpenGLContext clearCurrentContext];
    574574
    575575    [pPool release];
     
    599599    //[pView setNeedsDisplay:YES];
    600600    vmsvga3dCocoaServiceRunLoop();
    601    
     601
    602602    [pPool release];
    603603    LogFlow(("vmsvga3dCocoaSwapBuffers: returns\n"));
  • trunk/src/VBox/Devices/Graphics/VBoxSVGA3D.def

    r53736 r56333  
    1717
    1818LIBRARY VBoxSVGA3D
    19 EXPORTS 
     19EXPORTS
    2020    ShaderInitLib
    2121    ShaderDestroyLib
  • trunk/src/VBox/Devices/Graphics/VBoxSVGA3DObjC.def

    r55840 r56333  
    1717
    1818LIBRARY VBoxSVGA3DObjC
    19 EXPORTS 
     19EXPORTS
    2020    vmsvga3dCocoaServiceRunLoop
    2121    vmsvga3dCocoaCreateViewAndContext
    22     vmsvga3dCocoaDestroyViewAndContext             
    23     vmsvga3dCocoaViewSetPosition           
    24     vmsvga3dCocoaViewSetSize               
    25     vmsvga3dCocoaViewMakeCurrentContext     
    26     vmsvga3dCocoaSwapBuffers               
     22    vmsvga3dCocoaDestroyViewAndContext
     23    vmsvga3dCocoaViewSetPosition
     24    vmsvga3dCocoaViewSetSize
     25    vmsvga3dCocoaViewMakeCurrentContext
     26    vmsvga3dCocoaSwapBuffers
    2727
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