VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoCm.h@ 32325

Last change on this file since 32325 was 30462, checked in by vboxsync, 14 years ago

wddm/3d: visible regions reporting API & impl (not tested enough yet)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/*
2 * Copyright (C) 2010 Oracle Corporation
3 *
4 * This file is part of VirtualBox Open Source Edition (OSE), as
5 * available from http://www.virtualbox.org. This file is free software;
6 * you can redistribute it and/or modify it under the terms of the GNU
7 * General Public License (GPL) as published by the Free Software
8 * Foundation, in version 2 as it comes in the "COPYING" file of the
9 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
10 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
11 */
12#ifndef ___VBoxVideoCm_h___
13#define ___VBoxVideoCm_h___
14
15typedef struct VBOXVIDEOCM_MGR
16{
17 KEVENT SynchEvent;
18 /* session list */
19 LIST_ENTRY SessionList;
20} VBOXVIDEOCM_MGR, *PVBOXVIDEOCM_MGR;
21
22typedef struct VBOXVIDEOCM_CTX
23{
24 LIST_ENTRY SessionEntry;
25 struct VBOXVIDEOCM_SESSION *pSession;
26 uint64_t u64UmData;
27} VBOXVIDEOCM_CTX, *PVBOXVIDEOCM_CTX;
28
29void vboxVideoCmCtxInitEmpty(PVBOXVIDEOCM_CTX pContext);
30
31NTSTATUS vboxVideoCmCtxAdd(PVBOXVIDEOCM_MGR pMgr, PVBOXVIDEOCM_CTX pContext, HANDLE hUmEvent, uint64_t u64UmData);
32NTSTATUS vboxVideoCmCtxRemove(PVBOXVIDEOCM_MGR pMgr, PVBOXVIDEOCM_CTX pContext);
33NTSTATUS vboxVideoCmInit(PVBOXVIDEOCM_MGR pMgr);
34NTSTATUS vboxVideoCmTerm(PVBOXVIDEOCM_MGR pMgr);
35
36void* vboxVideoCmCmdCreate(PVBOXVIDEOCM_CTX pContext, uint32_t cbSize);
37void* vboxVideoCmCmdReinitForContext(void *pvCmd, PVBOXVIDEOCM_CTX pContext);
38void vboxVideoCmCmdRetain(void *pvCmd);
39void vboxVideoCmCmdRelease(void *pvCmd);
40#define VBOXVIDEOCM_SUBMITSIZE_DEFAULT (~0UL)
41void vboxVideoCmCmdSubmit(void *pvCmd, uint32_t cbSize);
42
43NTSTATUS vboxVideoCmEscape(PVBOXVIDEOCM_CTX pContext, PVBOXDISPIFESCAPE_GETVBOXVIDEOCMCMD pCmd, uint32_t cbCmd);
44
45#endif /* #ifndef ___VBoxVideoCm_h___ */
Note: See TracBrowser for help on using the repository browser.

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