VirtualBox

Ignore:
Timestamp:
Oct 13, 2010 9:06:35 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: chromium hgsmi transport (guest part, disabled)

Location:
trunk/src/VBox/GuestHost/OpenGL/util
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/net.c

    r21523 r33116  
    5656    int                  use_tcscomm;
    5757    int                  use_hgcm;
     58#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
     59    int                  use_hgsmi;
     60#endif
    5861
    5962    int                  num_clients; /* total number of clients (unused?) */
     
    109112    else if (!crStrcmp(protocol, "vboxhgcm"))
    110113    {
    111         cr_net.use_hgcm++;
    112         crVBoxHGCMInit(cr_net.recv_list, cr_net.close_list, mtu);
    113         crVBoxHGCMConnection(conn);
     114#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
     115        /* for now just use hgcm protocol name
     116         * since we still partially use HGCM and have HGCM backend on the host side */
     117        if(crVBoxHGSMIInit(cr_net.recv_list, cr_net.close_list, mtu))
     118        {
     119            cr_net.use_hgsmi++;
     120            crVBoxHGSMIConnection(conn);
     121        }
     122        else
     123# endif /* # #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) */
     124        {
     125            cr_net.use_hgcm++;
     126            crVBoxHGCMInit(cr_net.recv_list, cr_net.close_list, mtu);
     127            crVBoxHGCMConnection(conn);
     128        }
    114129    }
    115130#endif
     
    433448        cr_net.use_hgcm    = 0;
    434449        cr_net.num_clients = 0;
     450#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
     451        cr_net.use_hgsmi = 0;
     452#endif
    435453#ifdef CHROMIUM_THREADSAFE
    436454        crInitMutex(&cr_net.mutex);
     
    498516#endif
    499517
     518#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
     519    if (cr_net.use_hgsmi)
     520        crVBoxHGSMITearDown();
     521#endif
    500522    /* Note, other protocols used by chromium should free up stuff too,
    501523     * but VBox doesn't use them, so no other checks.
     
    537559    if ( c ) return c;
    538560
     561#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
     562    c = crVBoxHGSMIDump( num );
     563    if ( c ) return c;
     564#endif
    539565#ifdef VBOX_WITH_HGCM
    540566    c = crVBoxHGCMDump( num );
     
    12391265    if ( cr_net.use_tcpip )
    12401266        found_work += crTCPIPRecv();
     1267#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
     1268    if (cr_net.use_hgsmi)
     1269        found_work += crVBoxHGSMIRecv();
     1270#endif
    12411271#ifdef VBOX_WITH_HGCM
    12421272    if ( cr_net.use_hgcm )
  • trunk/src/VBox/GuestHost/OpenGL/util/net_internals.h

    r15532 r33116  
    9797extern void crVBoxHGCMTearDown(void);
    9898#endif
     99#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
     100extern bool crVBoxHGSMIInit( CRNetReceiveFuncList *rfl, CRNetCloseFuncList *cfl, unsigned int mtu );
     101extern void crVBoxHGSMIConnection( CRConnection *conn );
     102extern int crVBoxHGSMIRecv( void );
     103extern CRConnection** crVBoxHGSMIDump( int *num );
     104extern void crVBoxHGSMITearDown(void);
     105#endif /* #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) */
    99106
    100107/*
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