VirtualBox

Changeset 49474 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Nov 14, 2013 6:49:54 AM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: some host bits for buffer-based command submission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r49420 r49474  
    38603860}
    38613861
    3862 void Display::handleCrHgsmiCommandProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd)
     3862int 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
     3884void Display::handleCrHgsmiCommandProcess(PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd)
    38633885{
    38643886    int rc = VERR_INVALID_FUNCTION;
     
    38883910}
    38893911
    3890 void Display::handleCrHgsmiControlProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl)
     3912void Display::handleCrHgsmiControlProcess(PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl)
    38913913{
    38923914    int rc = VERR_INVALID_FUNCTION;
     
    39143936}
    39153937
     3938DECLCALLBACK(int)  Display::displayCrCmdNotifyCmds(PPDMIDISPLAYCONNECTOR pInterface)
     3939{
     3940    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
     3941
     3942    return pDrv->pDisplay->handleCrCmdNotifyCmds();
     3943}
    39163944
    39173945DECLCALLBACK(void) Display::displayCrHgsmiCommandProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd)
     
    39193947    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
    39203948
    3921     pDrv->pDisplay->handleCrHgsmiCommandProcess(pInterface, pCmd, cbCmd);
     3949    pDrv->pDisplay->handleCrHgsmiCommandProcess(pCmd, cbCmd);
    39223950}
    39233951
     
    39263954    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
    39273955
    3928     pDrv->pDisplay->handleCrHgsmiControlProcess(pInterface, pCmd, cbCmd);
     3956    pDrv->pDisplay->handleCrHgsmiControlProcess(pCmd, cbCmd);
    39293957}
    39303958
     
    44994527#endif
    45004528#ifdef VBOX_WITH_CRHGSMI
     4529    pThis->IConnector.pfnCrCmdNotifyCmds =  Display::displayCrCmdNotifyCmds;
    45014530    pThis->IConnector.pfnCrHgsmiCommandProcess = Display::displayCrHgsmiCommandProcess;
    45024531    pThis->IConnector.pfnCrHgsmiControlProcess = Display::displayCrHgsmiControlProcess;
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