VirtualBox

Ignore:
Timestamp:
Mar 15, 2015 11:58:32 PM (10 years ago)
Author:
vboxsync
Message:

VMSVGA3d: Eliminated the CR blitter dependencies, we don't need it (at the moment at least).

File:
1 edited

Legend:

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

    r54767 r54768  
    793793    float               m_yInvRootOffset;
    794794   
     795#ifndef IN_VMSVGA3D
    795796    CR_BLITTER         *m_pBlitter;
    796 #ifndef IN_VMSVGA3D
    797797    WindowInfo         *m_pWinInfo;
    798798#endif
     
    851851- (void)vboxPresentToViewCS:(const VBOXVR_SCR_COMPOSITOR *)pCompositor;
    852852- (void)presentComposition:(const VBOXVR_SCR_COMPOSITOR_ENTRY *)pChangedEntry;
     853#ifndef IN_VMSVGA3D
    853854- (void)vboxBlitterSyncWindow;
     855#endif
    854856
    855857- (void)clearVisibleRegions;
     
    13531355    m_RootRect                = NSMakeRect(0, 0, m_Size.width, m_Size.height);
    13541356    m_yInvRootOffset          = 0;
     1357#ifndef IN_VMSVGA3D
    13551358    m_pBlitter                = nil;
    1356 #ifndef IN_VMSVGA3D
    13571359    m_pWinInfo                = pWinInfo;
    13581360#endif
     
    13901392        m_pSharedGLCtx = nil;
    13911393       
     1394
     1395#ifndef IN_VMSVGA3D
    13921396        CrBltTerm(m_pBlitter);
    13931397        RTMemFree(m_pBlitter);
    13941398        m_pBlitter = nil;
     1399#endif
    13951400    }
    13961401
     
    16321637    [m_pSharedGLCtx update];
    16331638
     1639#ifndef IN_VMSVGA3D
    16341640    [self vboxBlitterSyncWindow];
     1641#endif
    16351642       
    16361643    /* Clear background to transparent. */
     
    20072014    }
    20082015       
     2016#ifndef IN_VMSVGA3D           
    20092017    Assert(!m_pBlitter);
    20102018    m_pBlitter = RTMemAlloc(sizeof(*m_pBlitter));
     
    20172025       
    20182026    int rc = CrBltInit(m_pBlitter, NULL, false /*fCreateNewCtx*/, false /*fForceDrawBlt*/,
    2019 #ifdef IN_VMSVGA3D
    2020                        NULL /** @todo */, NULL /** @todo */
    2021 #else
    2022                        &render_spu.GlobalShaders, &render_spu.blitterDispatch
    2023 #endif
    2024                        );
     2027                       &render_spu.GlobalShaders, &render_spu.blitterDispatch);
    20252028    if (RT_FAILURE(rc))
    20262029    {
     
    20342037
    20352038    COCOA_LOG_FLOW(("%s: blitter (%p) created successfully for view 0x%p\n", (void *)m_pBlitter, (void *)self));
     2039#endif /* !IN_VMSVGA3D */
    20362040
    20372041    /* Create a shared context out of the main context. Use the same pixel format. */
     
    24412445}
    24422446
     2447#ifndef IN_VMSVGA3D
    24432448- (void)vboxBlitterSyncWindow
    24442449{
     
    24642469    CrBltCheckUpdateViewport(m_pBlitter);
    24652470}
     2471#endif /* !IN_VMSVGA3D */
    24662472
    24672473#ifndef 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