VirtualBox

Ignore:
Timestamp:
Jun 28, 2010 7:00:55 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: visible regions impl & fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispMp.h

    r30464 r30483  
    2222#include "../../Miniport/wddm/VBoxVideoIf.h"
    2323
    24 HRESULT vboxDispMpEnable();
    25 HRESULT vboxDispMpDisable();
    26 
    2724typedef struct VBOXDISPMP_REGIONS
    2825{
     
    3128} VBOXDISPMP_REGIONS, *PVBOXDISPMP_REGIONS;
    3229
    33 /*
    34  * the VBOXDISPMP_REGIONS::pRegions returned is valid until the next vboxDispMpGetRegions call or vboxDispMpDisable call
     30typedef DECLCALLBACK(HRESULT) FNVBOXDISPMP_ENABLEEVENTS();
     31typedef FNVBOXDISPMP_ENABLEEVENTS *PFNVBOXDISPMP_ENABLEEVENTS;
     32
     33typedef DECLCALLBACK(HRESULT) FNVBOXDISPMP_DISABLEEVENTS();
     34typedef FNVBOXDISPMP_DISABLEEVENTS *PFNVBOXDISPMP_DISABLEEVENTS;
     35
     36typedef DECLCALLBACK(HRESULT) FNVBOXDISPMP_DISABLEEVENTS();
     37typedef FNVBOXDISPMP_DISABLEEVENTS *PFNVBOXDISPMP_DISABLEEVENTS;
     38
     39typedef DECLCALLBACK(HRESULT) FNVBOXDISPMP_GETREGIONS(PVBOXDISPMP_REGIONS pRegions, DWORD dwMilliseconds);
     40typedef FNVBOXDISPMP_GETREGIONS *PFNVBOXDISPMP_GETREGIONS;
     41
     42typedef struct VBOXDISPMP_CALLBACKS
     43{
     44    PFNVBOXDISPMP_ENABLEEVENTS pfnEnableEvents;
     45    PFNVBOXDISPMP_DISABLEEVENTS pfnDisableEvents;
     46    /**
     47     * if events are enabled - blocks until dirty region is available or timeout occurs
     48     * in the former case S_OK is returned on event, in the latter case WAIT_TIMEOUT is returned
     49     * if events are disabled - returns S_FALSE
     50     */
     51    PFNVBOXDISPMP_GETREGIONS pfnGetRegions;
     52} VBOXDISPMP_CALLBACKS, *PVBOXDISPMP_CALLBACKS;
     53
     54/** @def VBOXNETCFGWIN_DECL
     55 * The usual declaration wrapper.
    3556 */
    36 HRESULT vboxDispMpGetRegions(PVBOXDISPMP_REGIONS pRegions, DWORD dwMilliseconds);
     57
     58/* enable this in case we include this in a dll*/
     59# ifdef VBOXWDDMDISP
     60#  define VBOXDISPMP_DECL(_type) DECLEXPORT(_type)
     61# else
     62#  define VBOXDISPMP_DECL(_type) DECLIMPORT(_type)
     63# endif
     64
     65#define VBOXDISPMP_IFVERSION 1
     66#define VBOXDISPMP_VERSION (VBOXVIDEOIF_VERSION | (VBOXDISPMP_IFVERSION < 16))
     67/**
     68 *  VBoxDispMpGetCallbacks export
     69 *
     70 *  @param u32Version - must be set to VBOXDISPMP_VERSION
     71 *  @param pCallbacks - callbacks structure
     72 */
     73typedef VBOXDISPMP_DECL(HRESULT) FNVBOXDISPMP_GETCALLBACKS(uint32_t u32Version, PVBOXDISPMP_CALLBACKS pCallbacks);
     74typedef FNVBOXDISPMP_GETCALLBACKS *PFNVBOXDISPMP_GETCALLBACKS;
    3775
    3876#endif /* #ifndef ___VBoxDispMp_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