Changeset 49474 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Nov 14, 2013 6:49:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r49420 r49474 3860 3860 } 3861 3861 3862 void Display::handleCrHgsmiCommandProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd) 3862 int Display::handleCrCmdNotifyCmds() 3863 { 3864 int rc = VERR_INVALID_FUNCTION; 3865 3866 if (mhCrOglSvc) 3867 { 3868 VBOXHGCMSVCPARM dummy; 3869 VMMDev *pVMMDev = mParent->getVMMDev(); 3870 if (pVMMDev) 3871 { 3872 /* no completion callback is specified with this call, 3873 * the CrOgl code will complete the CrHgsmi command once it processes it */ 3874 rc = pVMMDev->hgcmHostFastCallAsync(mhCrOglSvc, SHCRGL_HOST_FN_CRCMD_NOTIFY_CMDS, &dummy, NULL, NULL); 3875 AssertRC(rc); 3876 } 3877 else 3878 rc = VERR_INVALID_STATE; 3879 } 3880 3881 return rc; 3882 } 3883 3884 void Display::handleCrHgsmiCommandProcess(PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd) 3863 3885 { 3864 3886 int rc = VERR_INVALID_FUNCTION; … … 3888 3910 } 3889 3911 3890 void Display::handleCrHgsmiControlProcess(P PDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl)3912 void Display::handleCrHgsmiControlProcess(PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl) 3891 3913 { 3892 3914 int rc = VERR_INVALID_FUNCTION; … … 3914 3936 } 3915 3937 3938 DECLCALLBACK(int) Display::displayCrCmdNotifyCmds(PPDMIDISPLAYCONNECTOR pInterface) 3939 { 3940 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 3941 3942 return pDrv->pDisplay->handleCrCmdNotifyCmds(); 3943 } 3916 3944 3917 3945 DECLCALLBACK(void) Display::displayCrHgsmiCommandProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd) … … 3919 3947 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 3920 3948 3921 pDrv->pDisplay->handleCrHgsmiCommandProcess(p Interface, pCmd, cbCmd);3949 pDrv->pDisplay->handleCrHgsmiCommandProcess(pCmd, cbCmd); 3922 3950 } 3923 3951 … … 3926 3954 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 3927 3955 3928 pDrv->pDisplay->handleCrHgsmiControlProcess(p Interface, pCmd, cbCmd);3956 pDrv->pDisplay->handleCrHgsmiControlProcess(pCmd, cbCmd); 3929 3957 } 3930 3958 … … 4499 4527 #endif 4500 4528 #ifdef VBOX_WITH_CRHGSMI 4529 pThis->IConnector.pfnCrCmdNotifyCmds = Display::displayCrCmdNotifyCmds; 4501 4530 pThis->IConnector.pfnCrHgsmiCommandProcess = Display::displayCrHgsmiCommandProcess; 4502 4531 pThis->IConnector.pfnCrHgsmiControlProcess = Display::displayCrHgsmiControlProcess;
Note:
See TracChangeset
for help on using the changeset viewer.