VirtualBox

Ignore:
Timestamp:
Feb 3, 2012 12:13:33 PM (13 years ago)
Author:
vboxsync
Message:

wddm/3d: visible regions fixes for WPF apps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.h

    r39160 r39981  
    1919#ifndef ___VBoxMPMisc_h__
    2020#define ___VBoxMPMisc_h__
     21
     22#include "../../common/VBoxVideoTools.h"
    2123
    2224DECLINLINE(void) vboxVideoLeDetach(LIST_ENTRY *pList, LIST_ENTRY *pDstList)
     
    162164#endif
    163165
     166/* visible rects */
     167typedef struct VBOXWDDMVR_LIST
     168{
     169    LIST_ENTRY ListHead;
     170    UINT cEntries;
     171} VBOXWDDMVR_LIST, *PVBOXWDDMVR_LIST;
     172
     173DECLINLINE(UINT) VBoxWddmVrListRectsCount(PVBOXWDDMVR_LIST pList)
     174{
     175    return pList->cEntries;
     176}
     177
     178DECLINLINE(BOOLEAN) VBoxWddmVrListIsEmpty(PVBOXWDDMVR_LIST pList)
     179{
     180    return !VBoxWddmVrListRectsCount(pList);
     181}
     182
     183DECLINLINE(void) VBoxWddmVrListInit(PVBOXWDDMVR_LIST pList)
     184{
     185    InitializeListHead(&pList->ListHead);
     186    pList->cEntries = 0;
     187}
     188
     189void VBoxWddmVrListClear(PVBOXWDDMVR_LIST pList);
     190
     191void VBoxWddmVrListTranslate(PVBOXWDDMVR_LIST pList, LONG x, LONG y);
     192
     193NTSTATUS VBoxWddmVrListRectsAdd(PVBOXWDDMVR_LIST pList, UINT cRects, const PRECT aRects, BOOLEAN *pfChanged);
     194NTSTATUS VBoxWddmVrListRectsSubst(PVBOXWDDMVR_LIST pList, UINT cRects, const PRECT aRects, BOOLEAN *pfChanged);
     195NTSTATUS VBoxWddmVrListRectsGet(PVBOXWDDMVR_LIST pList, UINT cRects, PRECT aRects);
     196
     197NTSTATUS VBoxWddmVrInit();
     198void VBoxWddmVrTerm();
     199
    164200#endif /* #ifndef ___VBoxMPMisc_h__ */
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