Changeset 50677 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 4, 2014 1:21:14 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92616
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DisplayImpl.h
r50394 r50677 168 168 #endif 169 169 #ifdef VBOX_WITH_CRHGSMI 170 int handleCrCmdNotifyCmds();171 170 void handleCrHgsmiCommandProcess(PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd); 172 171 void handleCrHgsmiControlProcess(PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl); … … 266 265 267 266 #ifdef VBOX_WITH_CRHGSMI 268 static DECLCALLBACK(int) displayCrCmdNotifyCmds(PPDMIDISPLAYCONNECTOR pInterface);269 267 static DECLCALLBACK(void) displayCrHgsmiCommandProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd); 270 268 static DECLCALLBACK(void) displayCrHgsmiControlProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl); -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r50552 r50677 4302 4302 } 4303 4303 4304 int Display::handleCrCmdNotifyCmds()4305 {4306 int rc = VERR_INVALID_FUNCTION;4307 4308 if (mhCrOglSvc)4309 {4310 VBOXHGCMSVCPARM dummy;4311 VMMDev *pVMMDev = mParent->getVMMDev();4312 if (pVMMDev)4313 {4314 /* no completion callback is specified with this call,4315 * the CrOgl code will complete the CrHgsmi command once it processes it */4316 rc = pVMMDev->hgcmHostFastCallAsync(mhCrOglSvc, SHCRGL_HOST_FN_CRCMD_NOTIFY_CMDS, &dummy, NULL, NULL);4317 AssertRC(rc);4318 }4319 else4320 rc = VERR_INVALID_STATE;4321 }4322 4323 return rc;4324 }4325 4326 4304 void Display::handleCrHgsmiCommandProcess(PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd) 4327 4305 { … … 4376 4354 /* we are here because something went wrong with command processing, complete it */ 4377 4355 handleCrHgsmiControlCompletion(rc, SHCRGL_HOST_FN_CRHGSMI_CTL, &parm); 4378 }4379 4380 DECLCALLBACK(int) Display::displayCrCmdNotifyCmds(PPDMIDISPLAYCONNECTOR pInterface)4381 {4382 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);4383 4384 return pDrv->pDisplay->handleCrCmdNotifyCmds();4385 4356 } 4386 4357 … … 5033 5004 #endif 5034 5005 #ifdef VBOX_WITH_CRHGSMI 5035 pThis->IConnector.pfnCrCmdNotifyCmds = Display::displayCrCmdNotifyCmds;5036 5006 pThis->IConnector.pfnCrHgsmiCommandProcess = Display::displayCrHgsmiCommandProcess; 5037 5007 pThis->IConnector.pfnCrHgsmiControlProcess = Display::displayCrHgsmiControlProcess;
Note:
See TracChangeset
for help on using the changeset viewer.