儲存庫 vbox 的更動 34490
- 時間撮記:
- 2010-11-29 下午09:55:17 (14 年 以前)
- 位置:
- trunk
- 檔案:
-
- 修改 6 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/VBox/VBoxVideo.h
r34182 r34490 131 131 132 132 #pragma pack(1) 133 typedef struct _VBOXVIDEOINFOHDR133 typedef struct VBOXVIDEOINFOHDR 134 134 { 135 135 uint8_t u8Type; … … 139 139 140 140 141 typedef struct _VBOXVIDEOINFOLINK141 typedef struct VBOXVIDEOINFOLINK 142 142 { 143 143 /* Relative offset in VRAM */ … … 147 147 148 148 /* Resides in adapter info memory. Describes a display VRAM chunk. */ 149 typedef struct _VBOXVIDEOINFODISPLAY149 typedef struct VBOXVIDEOINFODISPLAY 150 150 { 151 151 /* Index of the framebuffer assigned by guest. */ … … 170 170 #define VBOX_VIDEO_INFO_SCREEN_F_ACTIVE 0x01 171 171 172 typedef struct _VBOXVIDEOINFOSCREEN172 typedef struct VBOXVIDEOINFOSCREEN 173 173 { 174 174 /* Physical X origin relative to the primary screen. */ … … 201 201 #define VBOX_VIDEO_INFO_HOST_EVENTS_F_VRDP_RESET 0x00000080 202 202 203 typedef struct _VBOXVIDEOINFOHOSTEVENTS203 typedef struct VBOXVIDEOINFOHOSTEVENTS 204 204 { 205 205 /* Host events. */ … … 208 208 209 209 /* Resides in adapter info memory. Describes the non-volatile VRAM heap. */ 210 typedef struct _VBOXVIDEOINFONVHEAP210 typedef struct VBOXVIDEOINFONVHEAP 211 211 { 212 212 /* Absolute offset in VRAM of the start of the heap. */ … … 219 219 220 220 /* Display information area. */ 221 typedef struct _VBOXVIDEOINFOVBVASTATUS221 typedef struct VBOXVIDEOINFOVBVASTATUS 222 222 { 223 223 /* Absolute offset in VRAM of the start of the VBVA QUEUE. 0 to disable VBVA. */ … … 229 229 } VBOXVIDEOINFOVBVASTATUS; 230 230 231 typedef struct _VBOXVIDEOINFOVBVAFLUSH231 typedef struct VBOXVIDEOINFOVBVAFLUSH 232 232 { 233 233 uint32_t u32DataStart; … … 240 240 #define VBOX_VIDEO_QCI32_OFFSCREEN_HEAP_SIZE 1 241 241 242 typedef struct _VBOXVIDEOINFOQUERYCONF32242 typedef struct VBOXVIDEOINFOQUERYCONF32 243 243 { 244 244 uint32_t u32Index; … … 303 303 #define VBOXVHWACMD_FLAG_HH_CMD 0x10000000 304 304 305 typedef struct _VBOXVHWACMD305 typedef struct VBOXVHWACMD 306 306 { 307 307 VBOXVHWACMD_TYPE enmCmd; /* command type */ … … 315 315 union 316 316 { 317 struct _VBOXVHWACMD *pNext;317 struct VBOXVHWACMD *pNext; 318 318 uint32_t offNext; 319 319 uint64_t Data; /* the body is 64-bit aligned */ … … 331 331 #define VBOXVHWACMD_HEAD(_pb) ((VBOXVHWACMD*)((uint8_t *)(_pb) - RT_OFFSETOF(VBOXVHWACMD, body))) 332 332 333 typedef struct _VBOXVHWA_RECTL333 typedef struct VBOXVHWA_RECTL 334 334 { 335 335 int32_t left; … … 339 339 } VBOXVHWA_RECTL; 340 340 341 typedef struct _VBOXVHWA_COLORKEY341 typedef struct VBOXVHWA_COLORKEY 342 342 { 343 343 uint32_t low; … … 345 345 } VBOXVHWA_COLORKEY; 346 346 347 typedef struct _VBOXVHWA_PIXELFORMAT347 typedef struct VBOXVHWA_PIXELFORMAT 348 348 { 349 349 uint32_t flags; … … 381 381 } VBOXVHWA_PIXELFORMAT; 382 382 383 typedef struct _VBOXVHWA_SURFACEDESC383 typedef struct VBOXVHWA_SURFACEDESC 384 384 { 385 385 uint32_t flags; … … 402 402 } VBOXVHWA_SURFACEDESC; 403 403 404 typedef struct _VBOXVHWA_BLTFX404 typedef struct VBOXVHWA_BLTFX 405 405 { 406 406 uint32_t flags; … … 414 414 } VBOXVHWA_BLTFX; 415 415 416 typedef struct _VBOXVHWA_OVERLAYFX416 typedef struct VBOXVHWA_OVERLAYFX 417 417 { 418 418 uint32_t flags; … … 535 535 #define VBOXVHWA_OFFSET64_VOID (UINT64_MAX) 536 536 537 typedef struct _VBOXVHWA_VERSION537 typedef struct VBOXVHWA_VERSION 538 538 { 539 539 uint32_t maj; … … 550 550 } while(0) 551 551 552 typedef struct _VBOXVHWACMD_QUERYINFO1552 typedef struct VBOXVHWACMD_QUERYINFO1 553 553 { 554 554 union … … 579 579 } VBOXVHWACMD_QUERYINFO1; 580 580 581 typedef struct _VBOXVHWACMD_QUERYINFO2581 typedef struct VBOXVHWACMD_QUERYINFO2 582 582 { 583 583 uint32_t numFourCC; … … 587 587 #define VBOXVHWAINFO2_SIZE(_cFourCC) RT_OFFSETOF(VBOXVHWACMD_QUERYINFO2, FourCC[_cFourCC]) 588 588 589 typedef struct _VBOXVHWACMD_SURF_CANCREATE589 typedef struct VBOXVHWACMD_SURF_CANCREATE 590 590 { 591 591 VBOXVHWA_SURFACEDESC SurfInfo; … … 605 605 } VBOXVHWACMD_SURF_CANCREATE; 606 606 607 typedef struct _VBOXVHWACMD_SURF_CREATE607 typedef struct VBOXVHWACMD_SURF_CREATE 608 608 { 609 609 VBOXVHWA_SURFACEDESC SurfInfo; … … 611 611 612 612 #ifdef VBOX_WITH_WDDM 613 typedef struct _VBOXVHWACMD_SURF_GETINFO613 typedef struct VBOXVHWACMD_SURF_GETINFO 614 614 { 615 615 VBOXVHWA_SURFACEDESC SurfInfo; … … 617 617 #endif 618 618 619 typedef struct _VBOXVHWACMD_SURF_DESTROY619 typedef struct VBOXVHWACMD_SURF_DESTROY 620 620 { 621 621 union … … 628 628 } VBOXVHWACMD_SURF_DESTROY; 629 629 630 typedef struct _VBOXVHWACMD_SURF_LOCK630 typedef struct VBOXVHWACMD_SURF_LOCK 631 631 { 632 632 union … … 643 643 } VBOXVHWACMD_SURF_LOCK; 644 644 645 typedef struct _VBOXVHWACMD_SURF_UNLOCK645 typedef struct VBOXVHWACMD_SURF_UNLOCK 646 646 { 647 647 union … … 657 657 } VBOXVHWACMD_SURF_UNLOCK; 658 658 659 typedef struct _VBOXVHWACMD_SURF_BLT659 typedef struct VBOXVHWACMD_SURF_BLT 660 660 { 661 661 uint64_t DstGuestSurfInfo; … … 680 680 681 681 #ifdef VBOX_WITH_WDDM 682 typedef struct _VBOXVHWACMD_SURF_COLORFILL682 typedef struct VBOXVHWACMD_SURF_COLORFILL 683 683 { 684 684 union … … 696 696 #endif 697 697 698 typedef struct _VBOXVHWACMD_SURF_FLIP698 typedef struct VBOXVHWACMD_SURF_FLIP 699 699 { 700 700 uint64_t TargGuestSurfInfo; … … 715 715 } VBOXVHWACMD_SURF_FLIP; 716 716 717 typedef struct _VBOXVHWACMD_SURF_COLORKEY_SET717 typedef struct VBOXVHWACMD_SURF_COLORKEY_SET 718 718 { 719 719 union … … 733 733 #define VBOXVHWACMD_SURF_OVERLAY_UPDATE_F_DSTMEMRECT 0x00000002 734 734 735 typedef struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE735 typedef struct VBOXVHWACMD_SURF_OVERLAY_UPDATE 736 736 { 737 737 union … … 754 754 }VBOXVHWACMD_SURF_OVERLAY_UPDATE; 755 755 756 typedef struct _VBOXVHWACMD_SURF_OVERLAY_SETPOSITION756 typedef struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION 757 757 { 758 758 union … … 772 772 } VBOXVHWACMD_SURF_OVERLAY_SETPOSITION; 773 773 774 typedef struct _VBOXVHWACMD_HH_CONSTRUCT774 typedef struct VBOXVHWACMD_HH_CONSTRUCT 775 775 { 776 776 void *pVM; … … 780 780 } VBOXVHWACMD_HH_CONSTRUCT; 781 781 782 typedef struct _VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM782 typedef struct VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM 783 783 { 784 784 struct SSMHANDLE * pSSM; 785 785 } VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM; 786 786 787 typedef struct _VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM787 typedef struct VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM 788 788 { 789 789 struct SSMHANDLE * pSSM; … … 814 814 } VBVAHOSTFLAGS; 815 815 816 typedef struct _VBVABUFFER816 typedef struct VBVABUFFER 817 817 { 818 818 VBVAHOSTFLAGS hostFlags; … … 863 863 #define VBVAHG_DCUSTOM_VHWA_CMDCOMPLETE 1 864 864 #pragma pack(1) 865 typedef struct _VBVAHOSTCMDVHWACMDCOMPLETE865 typedef struct VBVAHOSTCMDVHWACMDCOMPLETE 866 866 { 867 867 uint32_t offCmd; … … 877 877 }VBVAHOSTCMD_OP_TYPE; 878 878 879 typedef struct _VBVAHOSTCMDEVENT879 typedef struct VBVAHOSTCMDEVENT 880 880 { 881 881 uint64_t pEvent; … … 883 883 884 884 885 typedef struct _VBVAHOSTCMD885 typedef struct VBVAHOSTCMD 886 886 { 887 887 /* destination ID if >=0 specifies display index, otherwize the command is directed to the miniport */ … … 890 890 union 891 891 { 892 struct _VBVAHOSTCMD *pNext;892 struct VBVAHOSTCMD *pNext; 893 893 uint32_t offNext; 894 894 uint64_t Data; /* the body is 64-bit aligned */ … … 908 908 #define VBOX_VBVA_CONF32_HOST_HEAP_SIZE 1 909 909 910 typedef struct _VBVACONF32910 typedef struct VBVACONF32 911 911 { 912 912 uint32_t u32Index; … … 929 929 } VBVAINFOVIEW; 930 930 931 typedef struct _VBVAINFOHEAP931 typedef struct VBVAINFOHEAP 932 932 { 933 933 /* Absolute offset in VRAM of the start of the heap. */ … … 939 939 } VBVAINFOHEAP; 940 940 941 typedef struct _VBVAFLUSH941 typedef struct VBVAFLUSH 942 942 { 943 943 uint32_t u32Reserved; … … 991 991 #endif 992 992 993 typedef struct _VBVAENABLE993 typedef struct VBVAENABLE 994 994 { 995 995 uint32_t u32Flags; … … 999 999 1000 1000 #ifdef VBOXWDDM_WITH_VBVA 1001 typedef struct _VBVAENABLE_EX1001 typedef struct VBVAENABLE_EX 1002 1002 { 1003 1003 VBVAENABLE Base; … … 1007 1007 1008 1008 1009 typedef struct _VBVAMOUSEPOINTERSHAPE1009 typedef struct VBVAMOUSEPOINTERSHAPE 1010 1010 { 1011 1011 /* The host result. */ … … 1060 1060 /* the guest driver can handle video adapter IRQs */ 1061 1061 #define VBVACAPS_IRQ 0x00000002 1062 typedef struct _VBVACAPS1062 typedef struct VBVACAPS 1063 1063 { 1064 1064 int32_t rc; -
trunk/include/VBox/VBoxVideoGuest.h
r34438 r34490 87 87 88 88 89 typedef struct VBVARECORD VBVARECORD, *PVBVARECORD;90 typedef struct _VBVABUFFER VBVABUFFER, *PVBVABUFFER;91 92 89 /** 93 90 * Structure grouping the context needed for sending graphics acceleration … … 105 102 /** The VBVA record that we are currently preparing for the host, NULL if 106 103 * none. */ 107 VBVARECORD *pRecord;104 struct VBVARECORD *pRecord; 108 105 /** Pointer to the VBVA buffer mapped into the current address space. Will 109 106 * be NULL if VBVA is not enabled. */ 110 VBVABUFFER *pVBVA;107 struct VBVABUFFER *pVBVA; 111 108 } VBVABUFFERCONTEXT, *PVBVABUFFERCONTEXT; 112 109 … … 260 257 RTDECL(bool) VBoxVBVAEnable(PVBVABUFFERCONTEXT pCtx, 261 258 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, 262 VBVABUFFER *pVBVA);259 struct VBVABUFFER *pVBVA); 263 260 RTDECL(void) VBoxVBVADisable(PVBVABUFFERCONTEXT pCtx, 264 261 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx); -
trunk/include/VBox/pdmifs.h
r34433 r34490 590 590 591 591 592 typedef struct _VBOXVHWACMD *PVBOXVHWACMD; /**< @todo r=bird: _VBOXVHWACMD -> VBOXVHWACMD; avoid using 1 or 2 leading underscores. Also, aline what it is to make doxygen happy. */592 typedef struct VBOXVHWACMD *PVBOXVHWACMD; /**< @todo r=bird: A line what it is to make doxygen happy. */ 593 593 typedef struct VBVACMDHDR *PVBVACMDHDR; 594 594 typedef struct VBVAINFOSCREEN *PVBVAINFOSCREEN; -
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r34203 r34490 40 40 #endif 41 41 42 typedef struct _VBVAPARTIALRECORD42 typedef struct VBVAPARTIALRECORD 43 43 { 44 44 uint8_t *pu8; … … 46 46 } VBVAPARTIALRECORD; 47 47 48 typedef struct _VBVAVIEW48 typedef struct VBVAVIEW 49 49 { 50 50 VBVAINFOVIEW view; … … 70 70 71 71 /* @todo saved state: save and restore VBVACONTEXT */ 72 typedef struct _VBVACONTEXT72 typedef struct VBVACONTEXT 73 73 { 74 74 uint32_t cViews; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r34461 r34490 168 168 static bool g_bVBoxVHWASupported = false; 169 169 170 static struct _VBOXVHWACMD * vhwaHHCmdCreate(VBOXVHWACMD_TYPE type, size_t size)170 static struct VBOXVHWACMD * vhwaHHCmdCreate(VBOXVHWACMD_TYPE type, size_t size) 171 171 { 172 172 char *buf = (char*)malloc(VBOXVHWACMD_SIZE_FROMBODYSIZE(size)); … … 2130 2130 2131 2131 #ifdef VBOX_WITH_VIDEOHWACCEL 2132 int VBoxVHWAImage::vhwaSurfaceCanCreate(struct _VBOXVHWACMD_SURF_CANCREATE *pCmd)2132 int VBoxVHWAImage::vhwaSurfaceCanCreate(struct VBOXVHWACMD_SURF_CANCREATE *pCmd) 2133 2133 { 2134 2134 VBOXQGLLOG_ENTER(("\n")); … … 2228 2228 } 2229 2229 2230 int VBoxVHWAImage::vhwaSurfaceCreate (struct _VBOXVHWACMD_SURF_CREATE *pCmd)2230 int VBoxVHWAImage::vhwaSurfaceCreate (struct VBOXVHWACMD_SURF_CREATE *pCmd) 2231 2231 { 2232 2232 VBOXQGLLOG_ENTER (("\n")); … … 2476 2476 2477 2477 #ifdef VBOX_WITH_WDDM 2478 int VBoxVHWAImage::vhwaSurfaceGetInfo(struct _VBOXVHWACMD_SURF_GETINFO *pCmd)2478 int VBoxVHWAImage::vhwaSurfaceGetInfo(struct VBOXVHWACMD_SURF_GETINFO *pCmd) 2479 2479 { 2480 2480 VBoxVHWAColorFormat format; … … 2504 2504 } 2505 2505 #endif 2506 int VBoxVHWAImage::vhwaSurfaceDestroy(struct _VBOXVHWACMD_SURF_DESTROY *pCmd)2506 int VBoxVHWAImage::vhwaSurfaceDestroy(struct VBOXVHWACMD_SURF_DESTROY *pCmd) 2507 2507 { 2508 2508 VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf); … … 2581 2581 (_pr)->bottom - (_pr)->top) 2582 2582 2583 int VBoxVHWAImage::vhwaSurfaceLock(struct _VBOXVHWACMD_SURF_LOCK *pCmd)2583 int VBoxVHWAImage::vhwaSurfaceLock(struct VBOXVHWACMD_SURF_LOCK *pCmd) 2584 2584 { 2585 2585 VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf); … … 2594 2594 } 2595 2595 2596 int VBoxVHWAImage::vhwaSurfaceUnlock(struct _VBOXVHWACMD_SURF_UNLOCK *pCmd)2596 int VBoxVHWAImage::vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK *pCmd) 2597 2597 { 2598 2598 VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf); … … 2635 2635 } 2636 2636 2637 int VBoxVHWAImage::vhwaSurfaceBlt(struct _VBOXVHWACMD_SURF_BLT *pCmd)2637 int VBoxVHWAImage::vhwaSurfaceBlt(struct VBOXVHWACMD_SURF_BLT *pCmd) 2638 2638 { 2639 2639 Q_UNUSED(pCmd); … … 2641 2641 } 2642 2642 2643 int VBoxVHWAImage::vhwaSurfaceFlip(struct _VBOXVHWACMD_SURF_FLIP *pCmd)2643 int VBoxVHWAImage::vhwaSurfaceFlip(struct VBOXVHWACMD_SURF_FLIP *pCmd) 2644 2644 { 2645 2645 VBoxVHWASurfaceBase *pTargSurf = handle2Surface(pCmd->u.in.hTargSurf); … … 2665 2665 } 2666 2666 2667 int VBoxVHWAImage::vhwaSurfaceColorFill(struct _VBOXVHWACMD_SURF_COLORFILL *pCmd)2667 int VBoxVHWAImage::vhwaSurfaceColorFill(struct VBOXVHWACMD_SURF_COLORFILL *pCmd) 2668 2668 { 2669 2669 NOREF(pCmd); … … 2671 2671 } 2672 2672 2673 void VBoxVHWAImage::vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd)2673 void VBoxVHWAImage::vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd) 2674 2674 { 2675 2675 if(pCmd->u.in.flags & VBOXVHWA_OVER_KEYDEST) … … 2751 2751 } 2752 2752 2753 int VBoxVHWAImage::vhwaSurfaceOverlayUpdate(struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd)2753 int VBoxVHWAImage::vhwaSurfaceOverlayUpdate(struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd) 2754 2754 { 2755 2755 VBoxVHWASurfaceBase *pSrcSurf = handle2Surface(pCmd->u.in.hSrcSurf); … … 2818 2818 } 2819 2819 2820 int VBoxVHWAImage::vhwaSurfaceOverlaySetPosition(struct _VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pCmd)2820 int VBoxVHWAImage::vhwaSurfaceOverlaySetPosition(struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pCmd) 2821 2821 { 2822 2822 VBoxVHWASurfaceBase *pDstSurf = handle2Surface(pCmd->u.in.hDstSurf); … … 2859 2859 } 2860 2860 2861 int VBoxVHWAImage::vhwaSurfaceColorkeySet(struct _VBOXVHWACMD_SURF_COLORKEY_SET *pCmd)2861 int VBoxVHWAImage::vhwaSurfaceColorkeySet(struct VBOXVHWACMD_SURF_COLORKEY_SET *pCmd) 2862 2862 { 2863 2863 VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf); … … 2894 2894 } 2895 2895 2896 int VBoxVHWAImage::vhwaQueryInfo1(struct _VBOXVHWACMD_QUERYINFO1 *pCmd)2896 int VBoxVHWAImage::vhwaQueryInfo1(struct VBOXVHWACMD_QUERYINFO1 *pCmd) 2897 2897 { 2898 2898 VBOXQGLLOG_ENTER(("\n")); … … 2997 2997 } 2998 2998 2999 int VBoxVHWAImage::vhwaQueryInfo2(struct _VBOXVHWACMD_QUERYINFO2 *pCmd)2999 int VBoxVHWAImage::vhwaQueryInfo2(struct VBOXVHWACMD_QUERYINFO2 *pCmd) 3000 3000 { 3001 3001 VBOXQGLLOG_ENTER(("\n")); … … 3507 3507 } 3508 3508 3509 int VBoxVHWAImage::vhwaConstruct(struct _VBOXVHWACMD_HH_CONSTRUCT *pCmd)3509 int VBoxVHWAImage::vhwaConstruct(struct VBOXVHWACMD_HH_CONSTRUCT *pCmd) 3510 3510 { 3511 3511 // PVM pVM = (PVM)pCmd->pVM; … … 4234 4234 case VBOXVHWA_PIPECMD_VHWA: 4235 4235 { 4236 struct _VBOXVHWACMD * pCmd = pCur->vhwaCmd();4236 struct VBOXVHWACMD * pCmd = pCur->vhwaCmd(); 4237 4237 pCmd->rc = VERR_INVALID_STATE; 4238 4238 display.CompleteVHWACommand((BYTE*)pCmd); … … 4286 4286 } 4287 4287 4288 int VBoxQGLOverlay::onVHWACommand(struct _VBOXVHWACMD * pCmd)4288 int VBoxQGLOverlay::onVHWACommand(struct VBOXVHWACMD * pCmd) 4289 4289 { 4290 4290 uint32_t flags = 0; … … 4612 4612 } 4613 4613 4614 int VBoxQGLOverlay::vhwaSurfaceUnlock(struct _VBOXVHWACMD_SURF_UNLOCK *pCmd)4614 int VBoxQGLOverlay::vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK *pCmd) 4615 4615 { 4616 4616 int rc = mOverlayImage.vhwaSurfaceUnlock(pCmd); … … 4627 4627 void VBoxQGLOverlay::vboxDoVHWACmdExec(void *cmd) 4628 4628 { 4629 struct _VBOXVHWACMD * pCmd = (struct _VBOXVHWACMD *)cmd;4629 struct VBOXVHWACMD * pCmd = (struct VBOXVHWACMD *)cmd; 4630 4630 switch(pCmd->enmCmd) 4631 4631 { … … 4831 4831 } 4832 4832 4833 int VBoxQGLOverlay::vhwaConstruct(struct _VBOXVHWACMD_HH_CONSTRUCT *pCmd)4833 int VBoxQGLOverlay::vhwaConstruct(struct VBOXVHWACMD_HH_CONSTRUCT *pCmd) 4834 4834 { 4835 4835 PVM pVM = (PVM)pCmd->pVM; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
r34461 r34490 993 993 typedef std::list <VBoxVHWASurfaceBase*> SurfList; 994 994 typedef std::list <VBoxVHWASurfList*> OverlayList; 995 typedef std::list <struct _VBOXVHWACMD *> VHWACommandList;995 typedef std::list <struct VBOXVHWACMD *> VHWACommandList; 996 996 997 997 class VBoxVHWASurfList … … 1184 1184 {} 1185 1185 1186 void setVHWACmd(struct _VBOXVHWACMD * pCmd)1186 void setVHWACmd(struct VBOXVHWACMD * pCmd) 1187 1187 { 1188 1188 mType = VBOXVHWA_PIPECMD_VHWA; … … 1210 1210 break; 1211 1211 case VBOXVHWA_PIPECMD_VHWA: 1212 setVHWACmd((struct _VBOXVHWACMD *)pvData);1212 setVHWACmd((struct VBOXVHWACMD *)pvData); 1213 1213 break; 1214 1214 case VBOXVHWA_PIPECMD_FUNC: … … 1226 1226 VBOXVHWA_PIPECMD_TYPE type() const {return mType;} 1227 1227 const QRect & rect() const {return mRect;} 1228 struct _VBOXVHWACMD * vhwaCmd() const {return u.mpCmd;}1228 struct VBOXVHWACMD * vhwaCmd() const {return u.mpCmd;} 1229 1229 const VBOXVHWAFUNCCALLBACKINFO & func() const {return u.mFuncCallback; } 1230 1230 … … 1234 1234 union 1235 1235 { 1236 struct _VBOXVHWACMD * mpCmd;1236 struct VBOXVHWACMD * mpCmd; 1237 1237 VBOXVHWAFUNCCALLBACKINFO mFuncCallback; 1238 1238 }u; … … 1503 1503 static int vhwaLoadExec(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version); 1504 1504 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); 1507 1507 #ifdef VBOX_WITH_WDDM 1508 int vhwaSurfaceGetInfo(struct _VBOXVHWACMD_SURF_GETINFO *pCmd);1508 int vhwaSurfaceGetInfo(struct VBOXVHWACMD_SURF_GETINFO *pCmd); 1509 1509 #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); 1522 1522 1523 1523 void *vramBase() { return mpvVRAM; } … … 1622 1622 static int vhwaLoadVHWAEnable(VHWACommandList * pCmdList); 1623 1623 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); 1625 1625 #endif 1626 1626 … … 1799 1799 void updateAttachment(QWidget *pViewport, QObject *pPostEventObject); 1800 1800 1801 int onVHWACommand (struct _VBOXVHWACMD * pCommand);1801 int onVHWACommand (struct VBOXVHWACMD * pCommand); 1802 1802 1803 1803 void onVHWACommandEvent (QEvent * pEvent); … … 1863 1863 void vhwaSaveExec (struct SSMHANDLE * pSSM); 1864 1864 private: 1865 int vhwaSurfaceUnlock (struct _VBOXVHWACMD_SURF_UNLOCK *pCmd);1865 int vhwaSurfaceUnlock (struct VBOXVHWACMD_SURF_UNLOCK *pCmd); 1866 1866 1867 1867 void repaintMain(); … … 1915 1915 VBoxVHWACommandElement * processCmdList (VBoxVHWACommandElement * pCmd, bool bFirst); 1916 1916 1917 int vhwaConstruct (struct _VBOXVHWACMD_HH_CONSTRUCT *pCmd);1917 int vhwaConstruct (struct VBOXVHWACMD_HH_CONSTRUCT *pCmd); 1918 1918 1919 1919 int reset(); … … 1971 1971 STDMETHOD(ProcessVHWACommand)(BYTE *pCommand) 1972 1972 { 1973 return mOverlay.onVHWACommand ((struct _VBOXVHWACMD*)pCommand);1973 return mOverlay.onVHWACommand ((struct VBOXVHWACMD*)pCommand); 1974 1974 } 1975 1975
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器