VirtualBox

儲存庫 vbox 的更動 34490


忽略:
時間撮記:
2010-11-29 下午09:55:17 (14 年 以前)
作者:
vboxsync
訊息:

VBoxVideo: remove leading underscore from structure names and make VBoxVideoGuest.h C-friendly

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

圖例:

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

    r34182 r34490  
    131131
    132132#pragma pack(1)
    133 typedef struct _VBOXVIDEOINFOHDR
     133typedef struct VBOXVIDEOINFOHDR
    134134{
    135135    uint8_t u8Type;
     
    139139
    140140
    141 typedef struct _VBOXVIDEOINFOLINK
     141typedef struct VBOXVIDEOINFOLINK
    142142{
    143143    /* Relative offset in VRAM */
     
    147147
    148148/* Resides in adapter info memory. Describes a display VRAM chunk. */
    149 typedef struct _VBOXVIDEOINFODISPLAY
     149typedef struct VBOXVIDEOINFODISPLAY
    150150{
    151151    /* Index of the framebuffer assigned by guest. */
     
    170170#define VBOX_VIDEO_INFO_SCREEN_F_ACTIVE 0x01
    171171
    172 typedef struct _VBOXVIDEOINFOSCREEN
     172typedef struct VBOXVIDEOINFOSCREEN
    173173{
    174174    /* Physical X origin relative to the primary screen. */
     
    201201#define VBOX_VIDEO_INFO_HOST_EVENTS_F_VRDP_RESET  0x00000080
    202202
    203 typedef struct _VBOXVIDEOINFOHOSTEVENTS
     203typedef struct VBOXVIDEOINFOHOSTEVENTS
    204204{
    205205    /* Host events. */
     
    208208
    209209/* Resides in adapter info memory. Describes the non-volatile VRAM heap. */
    210 typedef struct _VBOXVIDEOINFONVHEAP
     210typedef struct VBOXVIDEOINFONVHEAP
    211211{
    212212    /* Absolute offset in VRAM of the start of the heap. */
     
    219219
    220220/* Display information area. */
    221 typedef struct _VBOXVIDEOINFOVBVASTATUS
     221typedef struct VBOXVIDEOINFOVBVASTATUS
    222222{
    223223    /* Absolute offset in VRAM of the start of the VBVA QUEUE. 0 to disable VBVA. */
     
    229229} VBOXVIDEOINFOVBVASTATUS;
    230230
    231 typedef struct _VBOXVIDEOINFOVBVAFLUSH
     231typedef struct VBOXVIDEOINFOVBVAFLUSH
    232232{
    233233    uint32_t u32DataStart;
     
    240240#define VBOX_VIDEO_QCI32_OFFSCREEN_HEAP_SIZE 1
    241241
    242 typedef struct _VBOXVIDEOINFOQUERYCONF32
     242typedef struct VBOXVIDEOINFOQUERYCONF32
    243243{
    244244    uint32_t u32Index;
     
    303303#define VBOXVHWACMD_FLAG_HH_CMD                  0x10000000
    304304
    305 typedef struct _VBOXVHWACMD
     305typedef struct VBOXVHWACMD
    306306{
    307307    VBOXVHWACMD_TYPE enmCmd; /* command type */
     
    315315    union
    316316    {
    317         struct _VBOXVHWACMD *pNext;
     317        struct VBOXVHWACMD *pNext;
    318318        uint32_t             offNext;
    319319        uint64_t Data; /* the body is 64-bit aligned */
     
    331331#define VBOXVHWACMD_HEAD(_pb) ((VBOXVHWACMD*)((uint8_t *)(_pb) - RT_OFFSETOF(VBOXVHWACMD, body)))
    332332
    333 typedef struct _VBOXVHWA_RECTL
     333typedef struct VBOXVHWA_RECTL
    334334{
    335335    int32_t left;
     
    339339} VBOXVHWA_RECTL;
    340340
    341 typedef struct _VBOXVHWA_COLORKEY
     341typedef struct VBOXVHWA_COLORKEY
    342342{
    343343    uint32_t low;
     
    345345} VBOXVHWA_COLORKEY;
    346346
    347 typedef struct _VBOXVHWA_PIXELFORMAT
     347typedef struct VBOXVHWA_PIXELFORMAT
    348348{
    349349    uint32_t flags;
     
    381381} VBOXVHWA_PIXELFORMAT;
    382382
    383 typedef struct _VBOXVHWA_SURFACEDESC
     383typedef struct VBOXVHWA_SURFACEDESC
    384384{
    385385    uint32_t flags;
     
    402402} VBOXVHWA_SURFACEDESC;
    403403
    404 typedef struct _VBOXVHWA_BLTFX
     404typedef struct VBOXVHWA_BLTFX
    405405{
    406406    uint32_t flags;
     
    414414} VBOXVHWA_BLTFX;
    415415
    416 typedef struct _VBOXVHWA_OVERLAYFX
     416typedef struct VBOXVHWA_OVERLAYFX
    417417{
    418418    uint32_t flags;
     
    535535#define VBOXVHWA_OFFSET64_VOID        (UINT64_MAX)
    536536
    537 typedef struct _VBOXVHWA_VERSION
     537typedef struct VBOXVHWA_VERSION
    538538{
    539539    uint32_t maj;
     
    550550        } while(0)
    551551
    552 typedef struct _VBOXVHWACMD_QUERYINFO1
     552typedef struct VBOXVHWACMD_QUERYINFO1
    553553{
    554554    union
     
    579579} VBOXVHWACMD_QUERYINFO1;
    580580
    581 typedef struct _VBOXVHWACMD_QUERYINFO2
     581typedef struct VBOXVHWACMD_QUERYINFO2
    582582{
    583583    uint32_t numFourCC;
     
    587587#define VBOXVHWAINFO2_SIZE(_cFourCC) RT_OFFSETOF(VBOXVHWACMD_QUERYINFO2, FourCC[_cFourCC])
    588588
    589 typedef struct _VBOXVHWACMD_SURF_CANCREATE
     589typedef struct VBOXVHWACMD_SURF_CANCREATE
    590590{
    591591    VBOXVHWA_SURFACEDESC SurfInfo;
     
    605605} VBOXVHWACMD_SURF_CANCREATE;
    606606
    607 typedef struct _VBOXVHWACMD_SURF_CREATE
     607typedef struct VBOXVHWACMD_SURF_CREATE
    608608{
    609609    VBOXVHWA_SURFACEDESC SurfInfo;
     
    611611
    612612#ifdef VBOX_WITH_WDDM
    613 typedef struct _VBOXVHWACMD_SURF_GETINFO
     613typedef struct VBOXVHWACMD_SURF_GETINFO
    614614{
    615615    VBOXVHWA_SURFACEDESC SurfInfo;
     
    617617#endif
    618618
    619 typedef struct _VBOXVHWACMD_SURF_DESTROY
     619typedef struct VBOXVHWACMD_SURF_DESTROY
    620620{
    621621    union
     
    628628} VBOXVHWACMD_SURF_DESTROY;
    629629
    630 typedef struct _VBOXVHWACMD_SURF_LOCK
     630typedef struct VBOXVHWACMD_SURF_LOCK
    631631{
    632632    union
     
    643643} VBOXVHWACMD_SURF_LOCK;
    644644
    645 typedef struct _VBOXVHWACMD_SURF_UNLOCK
     645typedef struct VBOXVHWACMD_SURF_UNLOCK
    646646{
    647647    union
     
    657657} VBOXVHWACMD_SURF_UNLOCK;
    658658
    659 typedef struct _VBOXVHWACMD_SURF_BLT
     659typedef struct VBOXVHWACMD_SURF_BLT
    660660{
    661661    uint64_t DstGuestSurfInfo;
     
    680680
    681681#ifdef VBOX_WITH_WDDM
    682 typedef struct _VBOXVHWACMD_SURF_COLORFILL
     682typedef struct VBOXVHWACMD_SURF_COLORFILL
    683683{
    684684    union
     
    696696#endif
    697697
    698 typedef struct _VBOXVHWACMD_SURF_FLIP
     698typedef struct VBOXVHWACMD_SURF_FLIP
    699699{
    700700    uint64_t TargGuestSurfInfo;
     
    715715} VBOXVHWACMD_SURF_FLIP;
    716716
    717 typedef struct _VBOXVHWACMD_SURF_COLORKEY_SET
     717typedef struct VBOXVHWACMD_SURF_COLORKEY_SET
    718718{
    719719    union
     
    733733#define VBOXVHWACMD_SURF_OVERLAY_UPDATE_F_DSTMEMRECT 0x00000002
    734734
    735 typedef struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE
     735typedef struct VBOXVHWACMD_SURF_OVERLAY_UPDATE
    736736{
    737737    union
     
    754754}VBOXVHWACMD_SURF_OVERLAY_UPDATE;
    755755
    756 typedef struct _VBOXVHWACMD_SURF_OVERLAY_SETPOSITION
     756typedef struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION
    757757{
    758758    union
     
    772772} VBOXVHWACMD_SURF_OVERLAY_SETPOSITION;
    773773
    774 typedef struct _VBOXVHWACMD_HH_CONSTRUCT
     774typedef struct VBOXVHWACMD_HH_CONSTRUCT
    775775{
    776776    void    *pVM;
     
    780780} VBOXVHWACMD_HH_CONSTRUCT;
    781781
    782 typedef struct _VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM
     782typedef struct VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM
    783783{
    784784    struct SSMHANDLE * pSSM;
    785785} VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM;
    786786
    787 typedef struct _VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM
     787typedef struct VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM
    788788{
    789789    struct SSMHANDLE * pSSM;
     
    814814} VBVAHOSTFLAGS;
    815815
    816 typedef struct _VBVABUFFER
     816typedef struct VBVABUFFER
    817817{
    818818    VBVAHOSTFLAGS hostFlags;
     
    863863#define VBVAHG_DCUSTOM_VHWA_CMDCOMPLETE 1
    864864#pragma pack(1)
    865 typedef struct _VBVAHOSTCMDVHWACMDCOMPLETE
     865typedef struct VBVAHOSTCMDVHWACMDCOMPLETE
    866866{
    867867    uint32_t offCmd;
     
    877877}VBVAHOSTCMD_OP_TYPE;
    878878
    879 typedef struct _VBVAHOSTCMDEVENT
     879typedef struct VBVAHOSTCMDEVENT
    880880{
    881881    uint64_t pEvent;
     
    883883
    884884
    885 typedef struct _VBVAHOSTCMD
     885typedef struct VBVAHOSTCMD
    886886{
    887887    /* destination ID if >=0 specifies display index, otherwize the command is directed to the miniport */
     
    890890    union
    891891    {
    892         struct _VBVAHOSTCMD *pNext;
     892        struct VBVAHOSTCMD *pNext;
    893893        uint32_t             offNext;
    894894        uint64_t Data; /* the body is 64-bit aligned */
     
    908908#define VBOX_VBVA_CONF32_HOST_HEAP_SIZE 1
    909909
    910 typedef struct _VBVACONF32
     910typedef struct VBVACONF32
    911911{
    912912    uint32_t u32Index;
     
    929929} VBVAINFOVIEW;
    930930
    931 typedef struct _VBVAINFOHEAP
     931typedef struct VBVAINFOHEAP
    932932{
    933933    /* Absolute offset in VRAM of the start of the heap. */
     
    939939} VBVAINFOHEAP;
    940940
    941 typedef struct _VBVAFLUSH
     941typedef struct VBVAFLUSH
    942942{
    943943    uint32_t u32Reserved;
     
    991991#endif
    992992
    993 typedef struct _VBVAENABLE
     993typedef struct VBVAENABLE
    994994{
    995995    uint32_t u32Flags;
     
    999999
    10001000#ifdef VBOXWDDM_WITH_VBVA
    1001 typedef struct _VBVAENABLE_EX
     1001typedef struct VBVAENABLE_EX
    10021002{
    10031003    VBVAENABLE Base;
     
    10071007
    10081008
    1009 typedef struct _VBVAMOUSEPOINTERSHAPE
     1009typedef struct VBVAMOUSEPOINTERSHAPE
    10101010{
    10111011    /* The host result. */
     
    10601060/* the guest driver can handle video adapter IRQs */
    10611061#define VBVACAPS_IRQ                    0x00000002
    1062 typedef struct _VBVACAPS
     1062typedef struct VBVACAPS
    10631063{
    10641064    int32_t rc;
  • trunk/include/VBox/VBoxVideoGuest.h

    r34438 r34490  
    8787
    8888
    89 typedef struct VBVARECORD VBVARECORD, *PVBVARECORD;
    90 typedef struct _VBVABUFFER VBVABUFFER, *PVBVABUFFER;
    91 
    9289/**
    9390 * Structure grouping the context needed for sending graphics acceleration
     
    105102    /** The VBVA record that we are currently preparing for the host, NULL if
    106103     * none. */
    107     VBVARECORD *pRecord;
     104    struct VBVARECORD *pRecord;
    108105    /** Pointer to the VBVA buffer mapped into the current address space.  Will
    109106     * be NULL if VBVA is not enabled. */
    110     VBVABUFFER *pVBVA;
     107    struct VBVABUFFER *pVBVA;
    111108} VBVABUFFERCONTEXT, *PVBVABUFFERCONTEXT;
    112109
     
    260257RTDECL(bool) VBoxVBVAEnable(PVBVABUFFERCONTEXT pCtx,
    261258                            PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx,
    262                             VBVABUFFER *pVBVA);
     259                            struct VBVABUFFER *pVBVA);
    263260RTDECL(void) VBoxVBVADisable(PVBVABUFFERCONTEXT pCtx,
    264261                             PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx);
  • trunk/include/VBox/pdmifs.h

    r34433 r34490  
    590590
    591591
    592 typedef struct _VBOXVHWACMD *PVBOXVHWACMD; /**< @todo r=bird: _VBOXVHWACMD -> VBOXVHWACMD; avoid using 1 or 2 leading underscores. Also, a line what it is to make doxygen happy. */
     592typedef struct VBOXVHWACMD *PVBOXVHWACMD; /**< @todo r=bird: A line what it is to make doxygen happy. */
    593593typedef struct VBVACMDHDR *PVBVACMDHDR;
    594594typedef struct VBVAINFOSCREEN *PVBVAINFOSCREEN;
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r34203 r34490  
    4040#endif
    4141
    42 typedef struct _VBVAPARTIALRECORD
     42typedef struct VBVAPARTIALRECORD
    4343{
    4444    uint8_t *pu8;
     
    4646} VBVAPARTIALRECORD;
    4747
    48 typedef struct _VBVAVIEW
     48typedef struct VBVAVIEW
    4949{
    5050    VBVAINFOVIEW    view;
     
    7070
    7171/* @todo saved state: save and restore VBVACONTEXT */
    72 typedef struct _VBVACONTEXT
     72typedef struct VBVACONTEXT
    7373{
    7474    uint32_t cViews;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp

    r34461 r34490  
    168168static bool g_bVBoxVHWASupported = false;
    169169
    170 static struct _VBOXVHWACMD * vhwaHHCmdCreate(VBOXVHWACMD_TYPE type, size_t size)
     170static struct VBOXVHWACMD * vhwaHHCmdCreate(VBOXVHWACMD_TYPE type, size_t size)
    171171{
    172172    char *buf = (char*)malloc(VBOXVHWACMD_SIZE_FROMBODYSIZE(size));
     
    21302130
    21312131#ifdef VBOX_WITH_VIDEOHWACCEL
    2132 int VBoxVHWAImage::vhwaSurfaceCanCreate(struct _VBOXVHWACMD_SURF_CANCREATE *pCmd)
     2132int VBoxVHWAImage::vhwaSurfaceCanCreate(struct VBOXVHWACMD_SURF_CANCREATE *pCmd)
    21332133{
    21342134    VBOXQGLLOG_ENTER(("\n"));
     
    22282228}
    22292229
    2230 int VBoxVHWAImage::vhwaSurfaceCreate (struct _VBOXVHWACMD_SURF_CREATE *pCmd)
     2230int VBoxVHWAImage::vhwaSurfaceCreate (struct VBOXVHWACMD_SURF_CREATE *pCmd)
    22312231{
    22322232    VBOXQGLLOG_ENTER (("\n"));
     
    24762476
    24772477#ifdef VBOX_WITH_WDDM
    2478 int VBoxVHWAImage::vhwaSurfaceGetInfo(struct _VBOXVHWACMD_SURF_GETINFO *pCmd)
     2478int VBoxVHWAImage::vhwaSurfaceGetInfo(struct VBOXVHWACMD_SURF_GETINFO *pCmd)
    24792479{
    24802480    VBoxVHWAColorFormat format;
     
    25042504}
    25052505#endif
    2506 int VBoxVHWAImage::vhwaSurfaceDestroy(struct _VBOXVHWACMD_SURF_DESTROY *pCmd)
     2506int VBoxVHWAImage::vhwaSurfaceDestroy(struct VBOXVHWACMD_SURF_DESTROY *pCmd)
    25072507{
    25082508    VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf);
     
    25812581                 (_pr)->bottom - (_pr)->top)
    25822582
    2583 int VBoxVHWAImage::vhwaSurfaceLock(struct _VBOXVHWACMD_SURF_LOCK *pCmd)
     2583int VBoxVHWAImage::vhwaSurfaceLock(struct VBOXVHWACMD_SURF_LOCK *pCmd)
    25842584{
    25852585    VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf);
     
    25942594}
    25952595
    2596 int VBoxVHWAImage::vhwaSurfaceUnlock(struct _VBOXVHWACMD_SURF_UNLOCK *pCmd)
     2596int VBoxVHWAImage::vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK *pCmd)
    25972597{
    25982598    VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf);
     
    26352635}
    26362636
    2637 int VBoxVHWAImage::vhwaSurfaceBlt(struct _VBOXVHWACMD_SURF_BLT *pCmd)
     2637int VBoxVHWAImage::vhwaSurfaceBlt(struct VBOXVHWACMD_SURF_BLT *pCmd)
    26382638{
    26392639    Q_UNUSED(pCmd);
     
    26412641}
    26422642
    2643 int VBoxVHWAImage::vhwaSurfaceFlip(struct _VBOXVHWACMD_SURF_FLIP *pCmd)
     2643int VBoxVHWAImage::vhwaSurfaceFlip(struct VBOXVHWACMD_SURF_FLIP *pCmd)
    26442644{
    26452645    VBoxVHWASurfaceBase *pTargSurf = handle2Surface(pCmd->u.in.hTargSurf);
     
    26652665}
    26662666
    2667 int VBoxVHWAImage::vhwaSurfaceColorFill(struct _VBOXVHWACMD_SURF_COLORFILL *pCmd)
     2667int VBoxVHWAImage::vhwaSurfaceColorFill(struct VBOXVHWACMD_SURF_COLORFILL *pCmd)
    26682668{
    26692669    NOREF(pCmd);
     
    26712671}
    26722672
    2673 void VBoxVHWAImage::vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd)
     2673void VBoxVHWAImage::vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd)
    26742674{
    26752675    if(pCmd->u.in.flags & VBOXVHWA_OVER_KEYDEST)
     
    27512751}
    27522752
    2753 int VBoxVHWAImage::vhwaSurfaceOverlayUpdate(struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd)
     2753int VBoxVHWAImage::vhwaSurfaceOverlayUpdate(struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd)
    27542754{
    27552755    VBoxVHWASurfaceBase *pSrcSurf = handle2Surface(pCmd->u.in.hSrcSurf);
     
    28182818}
    28192819
    2820 int VBoxVHWAImage::vhwaSurfaceOverlaySetPosition(struct _VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pCmd)
     2820int VBoxVHWAImage::vhwaSurfaceOverlaySetPosition(struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pCmd)
    28212821{
    28222822    VBoxVHWASurfaceBase *pDstSurf = handle2Surface(pCmd->u.in.hDstSurf);
     
    28592859}
    28602860
    2861 int VBoxVHWAImage::vhwaSurfaceColorkeySet(struct _VBOXVHWACMD_SURF_COLORKEY_SET *pCmd)
     2861int VBoxVHWAImage::vhwaSurfaceColorkeySet(struct VBOXVHWACMD_SURF_COLORKEY_SET *pCmd)
    28622862{
    28632863    VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf);
     
    28942894}
    28952895
    2896 int VBoxVHWAImage::vhwaQueryInfo1(struct _VBOXVHWACMD_QUERYINFO1 *pCmd)
     2896int VBoxVHWAImage::vhwaQueryInfo1(struct VBOXVHWACMD_QUERYINFO1 *pCmd)
    28972897{
    28982898    VBOXQGLLOG_ENTER(("\n"));
     
    29972997}
    29982998
    2999 int VBoxVHWAImage::vhwaQueryInfo2(struct _VBOXVHWACMD_QUERYINFO2 *pCmd)
     2999int VBoxVHWAImage::vhwaQueryInfo2(struct VBOXVHWACMD_QUERYINFO2 *pCmd)
    30003000{
    30013001    VBOXQGLLOG_ENTER(("\n"));
     
    35073507}
    35083508
    3509 int VBoxVHWAImage::vhwaConstruct(struct _VBOXVHWACMD_HH_CONSTRUCT *pCmd)
     3509int VBoxVHWAImage::vhwaConstruct(struct VBOXVHWACMD_HH_CONSTRUCT *pCmd)
    35103510{
    35113511//    PVM pVM = (PVM)pCmd->pVM;
     
    42344234            case VBOXVHWA_PIPECMD_VHWA:
    42354235                {
    4236                     struct _VBOXVHWACMD * pCmd = pCur->vhwaCmd();
     4236                    struct VBOXVHWACMD * pCmd = pCur->vhwaCmd();
    42374237                    pCmd->rc = VERR_INVALID_STATE;
    42384238                    display.CompleteVHWACommand((BYTE*)pCmd);
     
    42864286}
    42874287
    4288 int VBoxQGLOverlay::onVHWACommand(struct _VBOXVHWACMD * pCmd)
     4288int VBoxQGLOverlay::onVHWACommand(struct VBOXVHWACMD * pCmd)
    42894289{
    42904290    uint32_t flags = 0;
     
    46124612}
    46134613
    4614 int VBoxQGLOverlay::vhwaSurfaceUnlock(struct _VBOXVHWACMD_SURF_UNLOCK *pCmd)
     4614int VBoxQGLOverlay::vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK *pCmd)
    46154615{
    46164616    int rc = mOverlayImage.vhwaSurfaceUnlock(pCmd);
     
    46274627void VBoxQGLOverlay::vboxDoVHWACmdExec(void *cmd)
    46284628{
    4629     struct _VBOXVHWACMD * pCmd = (struct _VBOXVHWACMD *)cmd;
     4629    struct VBOXVHWACMD * pCmd = (struct VBOXVHWACMD *)cmd;
    46304630    switch(pCmd->enmCmd)
    46314631    {
     
    48314831}
    48324832
    4833 int VBoxQGLOverlay::vhwaConstruct(struct _VBOXVHWACMD_HH_CONSTRUCT *pCmd)
     4833int VBoxQGLOverlay::vhwaConstruct(struct VBOXVHWACMD_HH_CONSTRUCT *pCmd)
    48344834{
    48354835    PVM pVM = (PVM)pCmd->pVM;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h

    r34461 r34490  
    993993typedef std::list <VBoxVHWASurfaceBase*> SurfList;
    994994typedef std::list <VBoxVHWASurfList*> OverlayList;
    995 typedef std::list <struct _VBOXVHWACMD *> VHWACommandList;
     995typedef std::list <struct VBOXVHWACMD *> VHWACommandList;
    996996
    997997class VBoxVHWASurfList
     
    11841184    {}
    11851185
    1186     void setVHWACmd(struct _VBOXVHWACMD * pCmd)
     1186    void setVHWACmd(struct VBOXVHWACMD * pCmd)
    11871187    {
    11881188        mType = VBOXVHWA_PIPECMD_VHWA;
     
    12101210            break;
    12111211        case VBOXVHWA_PIPECMD_VHWA:
    1212             setVHWACmd((struct _VBOXVHWACMD *)pvData);
     1212            setVHWACmd((struct VBOXVHWACMD *)pvData);
    12131213            break;
    12141214        case VBOXVHWA_PIPECMD_FUNC:
     
    12261226    VBOXVHWA_PIPECMD_TYPE type() const {return mType;}
    12271227    const QRect & rect() const {return mRect;}
    1228     struct _VBOXVHWACMD * vhwaCmd() const {return u.mpCmd;}
     1228    struct VBOXVHWACMD * vhwaCmd() const {return u.mpCmd;}
    12291229    const VBOXVHWAFUNCCALLBACKINFO & func() const {return u.mFuncCallback; }
    12301230
     
    12341234    union
    12351235    {
    1236         struct _VBOXVHWACMD * mpCmd;
     1236        struct VBOXVHWACMD * mpCmd;
    12371237        VBOXVHWAFUNCCALLBACKINFO mFuncCallback;
    12381238    }u;
     
    15031503    static int vhwaLoadExec(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version);
    15041504
    1505     int vhwaSurfaceCanCreate(struct _VBOXVHWACMD_SURF_CANCREATE *pCmd);
    1506     int vhwaSurfaceCreate(struct _VBOXVHWACMD_SURF_CREATE *pCmd);
     1505    int vhwaSurfaceCanCreate(struct VBOXVHWACMD_SURF_CANCREATE *pCmd);
     1506    int vhwaSurfaceCreate(struct VBOXVHWACMD_SURF_CREATE *pCmd);
    15071507#ifdef VBOX_WITH_WDDM
    1508     int vhwaSurfaceGetInfo(struct _VBOXVHWACMD_SURF_GETINFO *pCmd);
     1508    int vhwaSurfaceGetInfo(struct VBOXVHWACMD_SURF_GETINFO *pCmd);
    15091509#endif
    1510     int vhwaSurfaceDestroy(struct _VBOXVHWACMD_SURF_DESTROY *pCmd);
    1511     int vhwaSurfaceLock(struct _VBOXVHWACMD_SURF_LOCK *pCmd);
    1512     int vhwaSurfaceUnlock(struct _VBOXVHWACMD_SURF_UNLOCK *pCmd);
    1513     int vhwaSurfaceBlt(struct _VBOXVHWACMD_SURF_BLT *pCmd);
    1514     int vhwaSurfaceFlip(struct _VBOXVHWACMD_SURF_FLIP *pCmd);
    1515     int vhwaSurfaceColorFill(struct _VBOXVHWACMD_SURF_COLORFILL *pCmd);
    1516     int vhwaSurfaceOverlayUpdate(struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmf);
    1517     int vhwaSurfaceOverlaySetPosition(struct _VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pCmd);
    1518     int vhwaSurfaceColorkeySet(struct _VBOXVHWACMD_SURF_COLORKEY_SET *pCmd);
    1519     int vhwaQueryInfo1(struct _VBOXVHWACMD_QUERYINFO1 *pCmd);
    1520     int vhwaQueryInfo2(struct _VBOXVHWACMD_QUERYINFO2 *pCmd);
    1521     int vhwaConstruct(struct _VBOXVHWACMD_HH_CONSTRUCT *pCmd);
     1510    int vhwaSurfaceDestroy(struct VBOXVHWACMD_SURF_DESTROY *pCmd);
     1511    int vhwaSurfaceLock(struct VBOXVHWACMD_SURF_LOCK *pCmd);
     1512    int vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK *pCmd);
     1513    int vhwaSurfaceBlt(struct VBOXVHWACMD_SURF_BLT *pCmd);
     1514    int vhwaSurfaceFlip(struct VBOXVHWACMD_SURF_FLIP *pCmd);
     1515    int vhwaSurfaceColorFill(struct VBOXVHWACMD_SURF_COLORFILL *pCmd);
     1516    int vhwaSurfaceOverlayUpdate(struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmf);
     1517    int vhwaSurfaceOverlaySetPosition(struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pCmd);
     1518    int vhwaSurfaceColorkeySet(struct VBOXVHWACMD_SURF_COLORKEY_SET *pCmd);
     1519    int vhwaQueryInfo1(struct VBOXVHWACMD_QUERYINFO1 *pCmd);
     1520    int vhwaQueryInfo2(struct VBOXVHWACMD_QUERYINFO2 *pCmd);
     1521    int vhwaConstruct(struct VBOXVHWACMD_HH_CONSTRUCT *pCmd);
    15221522
    15231523    void *vramBase() { return mpvVRAM; }
     
    16221622    static int vhwaLoadVHWAEnable(VHWACommandList * pCmdList);
    16231623
    1624     void vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd);
     1624    void vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd);
    16251625#endif
    16261626
     
    17991799    void updateAttachment(QWidget *pViewport, QObject *pPostEventObject);
    18001800
    1801     int onVHWACommand (struct _VBOXVHWACMD * pCommand);
     1801    int onVHWACommand (struct VBOXVHWACMD * pCommand);
    18021802
    18031803    void onVHWACommandEvent (QEvent * pEvent);
     
    18631863    void vhwaSaveExec (struct SSMHANDLE * pSSM);
    18641864private:
    1865     int vhwaSurfaceUnlock (struct _VBOXVHWACMD_SURF_UNLOCK *pCmd);
     1865    int vhwaSurfaceUnlock (struct VBOXVHWACMD_SURF_UNLOCK *pCmd);
    18661866
    18671867    void repaintMain();
     
    19151915    VBoxVHWACommandElement * processCmdList (VBoxVHWACommandElement * pCmd, bool bFirst);
    19161916
    1917     int vhwaConstruct (struct _VBOXVHWACMD_HH_CONSTRUCT *pCmd);
     1917    int vhwaConstruct (struct VBOXVHWACMD_HH_CONSTRUCT *pCmd);
    19181918
    19191919    int reset();
     
    19711971    STDMETHOD(ProcessVHWACommand)(BYTE *pCommand)
    19721972    {
    1973         return mOverlay.onVHWACommand ((struct _VBOXVHWACMD*)pCommand);
     1973        return mOverlay.onVHWACommand ((struct VBOXVHWACMD*)pCommand);
    19741974    }
    19751975
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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