VirtualBox

Changeset 12806 in vbox for trunk/include


Ignore:
Timestamp:
Sep 29, 2008 3:02:22 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37158
Message:

+removed temp buffers usage inside chromium with hgcm
+combined read/writes to reduce number of hgcm calls
+some hacks fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/VBoxCrOpenGLSvc.h

    r12577 r12806  
    3939#define SHCRGL_HOST_FN_SET_FRAMEBUFFER (1)
    4040/* crOpenGL guest functions */
    41 #define SHCRGL_GUEST_FN_WRITE (2)
    42 #define SHCRGL_GUEST_FN_READ (3)
     41#define SHCRGL_GUEST_FN_WRITE       (2)
     42#define SHCRGL_GUEST_FN_READ        (3)
     43#define SHCRGL_GUEST_FN_WRITE_READ  (4)
    4344
    4445/* Parameters count */
    4546#define SHCRGL_CPARMS_SET_FRAMEBUFFER (1)
    46 #define SHCRGL_CPARMS_WRITE (1)
    47 #define SHCRGL_CPARMS_READ (2)
     47#define SHCRGL_CPARMS_WRITE      (1)
     48#define SHCRGL_CPARMS_READ       (2)
     49#define SHCRGL_CPARMS_WRITE_READ (3)
    4850
    4951/**
     
    5153 */
    5254
    53 /** GUEST_FN_READ Parameters structure. */
     55/** GUEST_FN_WRITE Parameters structure. */
    5456typedef struct
    5557{
     
    6264} CRVBOXHGCMWRITE;
    6365
    64 /** GUEST_FN_WRITE Parameters structure. */
     66/** GUEST_FN_READ Parameters structure. */
    6567typedef struct
    6668{
     
    7981} CRVBOXHGCMREAD;
    8082
     83/** GUEST_FN_WRITE_READ Parameters structure. */
     84typedef struct
     85{
     86    VBoxGuestHGCMCallInfo   hdr;
     87
     88    /** pointer, in
     89     *  Data buffer
     90     */
     91    HGCMFunctionParameter   pBuffer;
     92
     93    /** pointer, out
     94     *  Writeback buffer
     95     */
     96    HGCMFunctionParameter   pWriteback;
     97
     98    /** 32bit, out
     99     * Count of bytes written to writeback buffer
     100     */
     101    HGCMFunctionParameter   cbWriteback;
     102   
     103} CRVBOXHGCMWRITEREAD;
     104
    81105#endif
Note: See TracChangeset for help on using the changeset viewer.

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