VirtualBox

儲存庫 vbox 的更動 12577


忽略:
時間撮記:
2008-9-18 下午02:58:17 (16 年 以前)
作者:
vboxsync
訊息:

+changed chromium to use hgcm instead of tcpip, it works but some cleanup should be done

位置:
trunk
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/VBox/HostServices/VBoxCrOpenGLSvc.h

    r12473 r12577  
    3737
    3838/* crOpenGL host functions */
    39 #define VBOX_SHARED_CROPENGL_HOST_FN_SET_FRAMEBUFFER (1)
     39#define SHCRGL_HOST_FN_SET_FRAMEBUFFER (1)
     40/* crOpenGL guest functions */
     41#define SHCRGL_GUEST_FN_WRITE (2)
     42#define SHCRGL_GUEST_FN_READ (3)
    4043
    4144/* Parameters count */
    42 #define SHCRGL_CPARMS_SET_SET_FRAMEBUFFER (1)
     45#define SHCRGL_CPARMS_SET_FRAMEBUFFER (1)
     46#define SHCRGL_CPARMS_WRITE (1)
     47#define SHCRGL_CPARMS_READ (2)
     48
     49/**
     50 * SHCRGL_GUEST_FN_WRITE
     51 */
     52
     53/** GUEST_FN_READ Parameters structure. */
     54typedef struct
     55{
     56    VBoxGuestHGCMCallInfo   hdr;
     57
     58    /** pointer, in
     59     *  Data buffer
     60     */
     61    HGCMFunctionParameter   pBuffer;
     62} CRVBOXHGCMWRITE;
     63
     64/** GUEST_FN_WRITE Parameters structure. */
     65typedef struct
     66{
     67    VBoxGuestHGCMCallInfo   hdr;
     68
     69    /** pointer, in/out
     70     *  Data buffer
     71     */
     72    HGCMFunctionParameter   pBuffer;
     73
     74    /** 32bit, out
     75     * Count of bytes written to buffer
     76     */
     77    HGCMFunctionParameter   cbBuffer;
     78
     79} CRVBOXHGCMREAD;
    4380
    4481#endif
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r12449 r12577  
    831831
    832832            //parm.u.pointer.addr = static_cast <IConsole *> (pData->pVMMDev->getParent());
    833                         parm.u.pointer.addr = pData->pVMMDev->getParent()->getDisplay()->getFramebuffer();
     833            parm.u.pointer.addr = pData->pVMMDev->getParent()->getDisplay()->getFramebuffer();
    834834            parm.u.pointer.size = sizeof(IFramebuffer *);
    835        
    836             rc = HGCMHostCall("VBoxSharedCrOpenGL", VBOX_SHARED_CROPENGL_HOST_FN_SET_FRAMEBUFFER, 1, &parm);
     835   
     836            rc = HGCMHostCall("VBoxSharedCrOpenGL", SHCRGL_HOST_FN_SET_FRAMEBUFFER, 1, &parm);
    837837            if (!VBOX_SUCCESS(rc))
    838                 AssertMsgFailed(("VBOX_SHARED_CROPENGL_HOST_FN_SET_FRAMEBUFFER failed with %Vrc\n", rc));
     838                AssertMsgFailed(("SHCRGL_HOST_FN_SET_FRAMEBUFFER failed with %Vrc\n", rc));
    839839        }
    840840        else
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette