Changeset 14317 in vbox
- Timestamp:
- Nov 18, 2008 4:50:15 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r14237 r14317 45 45 #include <VBox/version.h> 46 46 #include <VBox/HostServices/VBoxClipboardSvc.h> 47 #ifdef VBOX_WITH_CROGL 48 #include <VBox/HostServices/VBoxCrOpenGLSvc.h> 49 #endif 47 50 #ifdef VBOX_WITH_GUEST_PROPS 48 51 # include <VBox/HostServices/GuestPropertySvc.h> … … 1763 1766 } 1764 1767 } 1768 1769 #ifdef VBOX_WITH_CROGL 1770 /* 1771 * crOpenGL 1772 */ 1773 { 1774 BOOL fEnabled = false; 1775 hrc = pMachine->COMGETTER(Accelerate3DEnabled) (&fEnabled); H(); 1776 1777 if (fEnabled) 1778 { 1779 /* Load the service */ 1780 rc = pConsole->mVMMDev->hgcmLoadService ("VBoxSharedCrOpenGL", "VBoxSharedCrOpenGL"); 1781 if (RT_FAILURE(rc)) 1782 { 1783 LogRel(("Failed to load Shared OpenGL service %Rrc\n", rc)); 1784 /* That is not a fatal failure. */ 1785 rc = VINF_SUCCESS; 1786 } 1787 else 1788 { 1789 LogRel(("Shared crOpenGL service loaded.\n")); 1790 1791 /* Setup the service. */ 1792 VBOXHGCMSVCPARM parm; 1793 parm.type = VBOX_HGCM_SVC_PARM_PTR; 1794 1795 //parm.u.pointer.addr = static_cast <IConsole *> (pData->pVMMDev->getParent()); 1796 parm.u.pointer.addr = pConsole->mVMMDev->getParent()->getDisplay()->getFramebuffer(); 1797 parm.u.pointer.size = sizeof(IFramebuffer *); 1798 1799 rc = pConsole->mVMMDev->hgcmHostCall("VBoxSharedCrOpenGL", SHCRGL_HOST_FN_SET_FRAMEBUFFER, 1, &parm); 1800 if (!RT_SUCCESS(rc)) 1801 AssertMsgFailed(("SHCRGL_HOST_FN_SET_FRAMEBUFFER failed with %Rrc\n", rc)); 1802 } 1803 } 1804 } 1805 #endif 1806 1765 1807 #ifdef VBOX_WITH_GUEST_PROPS 1766 1808 /* -
trunk/src/VBox/Main/Makefile.kmk
r14245 r14317 68 68 ifdef VBOX_WITH_NETFLT 69 69 VBOX_MAIN_DEFS += VBOX_WITH_NETFLT 70 endif 71 ifdef VBOX_WITH_CROGL 72 VBOX_MAIN_DEFS += VBOX_WITH_CROGL 70 73 endif 71 74 ifdef VBOX_WITH_GUEST_PROPS -
trunk/src/VBox/Main/VMMDevInterface.cpp
r13837 r14317 36 36 #include "hgcm/HGCM.h" 37 37 #include "hgcm/HGCMObjects.h" 38 #include <VBox/HostServices/VBoxCrOpenGLSvc.h>39 38 #endif 40 39 … … 815 814 { 816 815 LogRel(("Failed to load Shared OpenGL service %Rrc\n", rc)); 817 }818 }819 820 rc = CFGMR3QueryBool(pCfgHandle, "crOpenGLEnabled", &fEnabled);821 if ( RT_SUCCESS(rc) && fEnabled)822 {823 rc = pData->pVMMDev->hgcmLoadService ("VBoxSharedCrOpenGL", "VBoxSharedCrOpenGL");824 if (RT_SUCCESS(rc))825 {826 LogRel(("Shared Chromium OpenGL service loaded.\n"));827 828 /* Setup the service. */829 VBOXHGCMSVCPARM parm;830 parm.type = VBOX_HGCM_SVC_PARM_PTR;831 832 //parm.u.pointer.addr = static_cast <IConsole *> (pData->pVMMDev->getParent());833 parm.u.pointer.addr = pData->pVMMDev->getParent()->getDisplay()->getFramebuffer();834 parm.u.pointer.size = sizeof(IFramebuffer *);835 836 rc = HGCMHostCall("VBoxSharedCrOpenGL", SHCRGL_HOST_FN_SET_FRAMEBUFFER, 1, &parm);837 if (!RT_SUCCESS(rc))838 AssertMsgFailed(("SHCRGL_HOST_FN_SET_FRAMEBUFFER failed with %Rrc\n", rc));839 }840 else841 {842 LogRel(("Failed to load Shared Chromium OpenGL service %Rrc\n", rc));843 816 } 844 817 }
Note:
See TracChangeset
for help on using the changeset viewer.