Changeset 54768 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Mar 15, 2015 11:58:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r54767 r54768 793 793 float m_yInvRootOffset; 794 794 795 #ifndef IN_VMSVGA3D 795 796 CR_BLITTER *m_pBlitter; 796 #ifndef IN_VMSVGA3D797 797 WindowInfo *m_pWinInfo; 798 798 #endif … … 851 851 - (void)vboxPresentToViewCS:(const VBOXVR_SCR_COMPOSITOR *)pCompositor; 852 852 - (void)presentComposition:(const VBOXVR_SCR_COMPOSITOR_ENTRY *)pChangedEntry; 853 #ifndef IN_VMSVGA3D 853 854 - (void)vboxBlitterSyncWindow; 855 #endif 854 856 855 857 - (void)clearVisibleRegions; … … 1353 1355 m_RootRect = NSMakeRect(0, 0, m_Size.width, m_Size.height); 1354 1356 m_yInvRootOffset = 0; 1357 #ifndef IN_VMSVGA3D 1355 1358 m_pBlitter = nil; 1356 #ifndef IN_VMSVGA3D1357 1359 m_pWinInfo = pWinInfo; 1358 1360 #endif … … 1390 1392 m_pSharedGLCtx = nil; 1391 1393 1394 1395 #ifndef IN_VMSVGA3D 1392 1396 CrBltTerm(m_pBlitter); 1393 1397 RTMemFree(m_pBlitter); 1394 1398 m_pBlitter = nil; 1399 #endif 1395 1400 } 1396 1401 … … 1632 1637 [m_pSharedGLCtx update]; 1633 1638 1639 #ifndef IN_VMSVGA3D 1634 1640 [self vboxBlitterSyncWindow]; 1641 #endif 1635 1642 1636 1643 /* Clear background to transparent. */ … … 2007 2014 } 2008 2015 2016 #ifndef IN_VMSVGA3D 2009 2017 Assert(!m_pBlitter); 2010 2018 m_pBlitter = RTMemAlloc(sizeof(*m_pBlitter)); … … 2017 2025 2018 2026 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); 2025 2028 if (RT_FAILURE(rc)) 2026 2029 { … … 2034 2037 2035 2038 COCOA_LOG_FLOW(("%s: blitter (%p) created successfully for view 0x%p\n", (void *)m_pBlitter, (void *)self)); 2039 #endif /* !IN_VMSVGA3D */ 2036 2040 2037 2041 /* Create a shared context out of the main context. Use the same pixel format. */ … … 2441 2445 } 2442 2446 2447 #ifndef IN_VMSVGA3D 2443 2448 - (void)vboxBlitterSyncWindow 2444 2449 { … … 2464 2469 CrBltCheckUpdateViewport(m_pBlitter); 2465 2470 } 2471 #endif /* !IN_VMSVGA3D */ 2466 2472 2467 2473 #ifndef IN_VMSVGA3D
Note:
See TracChangeset
for help on using the changeset viewer.