VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm.h@ 65521

最後變更 在這個檔案從65521是 56566,由 vboxsync 提交於 9 年 前

Host 3D: Expando SPU, DLM module.

  • DLM module reworked. Now it uses hardware way in order to execute Display List (software approach dropped);
  • Chromium/utils slightly extended with more helper functions needed for Expando/DLM;
  • More testing needed especially for glCallLists() and glListBase();
  • Expando/DLM code now enabed for Mac hosts.
  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1005 位元組
 
1/* $Id: dlm.h 56566 2015-06-20 08:10:59Z vboxsync $ */
2
3#ifndef _DLM_H
4#define _DLM_H
5
6#include "cr_dlm.h"
7#include "cr_spu.h"
8
9#ifdef CHROMIUM_THREADSAFE
10#define DLM_LOCK(dlm) crLockMutex(&(dlm->dlMutex));
11#define DLM_UNLOCK(dlm) crUnlockMutex(&(dlm->dlMutex));
12extern CRtsd CRDLMTSDKey;
13#define SET_CURRENT_STATE(state) crSetTSD(&CRDLMTSDKey, (void *)state);
14#define CURRENT_STATE() ((CRDLMContextState *)crGetTSD(&CRDLMTSDKey))
15#else
16#define DLM_LOCK(dlm)
17#define DLM_UNLOCK(dlm)
18extern CRDLMContextState *CRDLMCurrentState;
19#define SET_CURRENT_STATE(state) CRDLMCurrentState = (state);
20#define CURRENT_STATE() (CRDLMCurrentState)
21#endif
22
23/* These routines are intended to be used within the DLM library, across
24 * the modules therein, but not as an API into the DLM library from
25 * outside.
26 */
27extern void crdlmWarning( int line, char *file, GLenum error, char *format, ... );
28extern void crdlmFreeDisplayListResourcesCb(void *pParm1, void *pParam2);
29extern void crdlm_error(int line, const char *file, GLenum error, const char *info);
30
31#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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