Changeset 23746 in vbox
- Timestamp:
- Oct 14, 2009 8:40:44 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53471
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGL2D.h
r23740 r23746 24 24 25 25 #include <iprt/types.h> 26 27 #if defined(DEBUG) && !defined(DEBUG_sandervl)28 # include "iprt/stream.h"29 # define VBOXQGLLOG(_m) RTPrintf _m30 # define VBOXQGLLOGREL(_m) do { RTPrintf _m ; LogRel( _m ); } while(0)31 #else32 # define VBOXQGLLOG(_m) do {}while(0)33 # define VBOXQGLLOGREL(_m) LogRel( _m )34 #endif35 #define VBOXQGLLOG_ENTER(_m)36 //do{VBOXQGLLOG(("==>[%s]:", __FUNCTION__)); VBOXQGLLOG(_m);}while(0)37 #define VBOXQGLLOG_EXIT(_m)38 //do{VBOXQGLLOG(("<==[%s]:", __FUNCTION__)); VBOXQGLLOG(_m);}while(0)39 #ifdef DEBUG40 #define VBOXQGL_ASSERTNOERR() \41 do { GLenum err = glGetError(); \42 if(err != GL_NO_ERROR) VBOXQGLLOG(("gl error ocured (0x%x)\n", err)); \43 Assert(err == GL_NO_ERROR); \44 }while(0)45 46 #define VBOXQGL_CHECKERR(_op) \47 do { \48 glGetError(); \49 _op \50 VBOXQGL_ASSERTNOERR(); \51 }while(0)52 #else53 #define VBOXQGL_ASSERTNOERR() \54 do {}while(0)55 56 #define VBOXQGL_CHECKERR(_op) \57 do { \58 _op \59 }while(0)60 #endif61 62 #ifdef DEBUG63 #include <iprt/time.h>64 65 #define VBOXGETTIME() RTTimeNanoTS()66 67 #define VBOXPRINTDIF(_nano, _m) do{\68 uint64_t cur = VBOXGETTIME(); \69 VBOXQGLLOG(_m); \70 VBOXQGLLOG(("(%Lu)\n", cur - (_nano))); \71 }while(0)72 73 class VBoxVHWADbgTimeCounter74 {75 public:76 VBoxVHWADbgTimeCounter(const char* msg) {mTime = VBOXGETTIME(); mMsg=msg;}77 ~VBoxVHWADbgTimeCounter() {VBOXPRINTDIF(mTime, (mMsg));}78 private:79 uint64_t mTime;80 const char* mMsg;81 };82 83 #define VBOXQGLLOG_METHODTIME(_m) VBoxVHWADbgTimeCounter _dbgTimeCounter(_m)84 85 #define VBOXQG_CHECKCONTEXT() \86 { \87 const GLubyte * str; \88 VBOXQGL_CHECKERR( \89 str = glGetString(GL_VERSION); \90 ); \91 Assert(str); \92 if(str) \93 { \94 Assert(str[0]); \95 } \96 }97 #else98 #define VBOXQGLLOG_METHODTIME(_m)99 #define VBOXQG_CHECKCONTEXT() do{}while(0)100 #endif101 102 #define VBOXQGLLOG_QRECT(_p, _pr, _s) do{\103 VBOXQGLLOG((_p " x(%d), y(%d), w(%d), h(%d)" _s, (_pr)->x(), (_pr)->y(), (_pr)->width(), (_pr)->height()));\104 }while(0)105 106 #define VBOXQGLLOG_CKEY(_p, _pck, _s) do{\107 VBOXQGLLOG((_p " l(0x%x), u(0x%x)" _s, (_pck)->lower(), (_pck)->upper()));\108 }while(0)109 26 110 27 typedef char GLchar; -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r23740 r23746 688 688 # VBoxOGL2D_LRCTOOL = QT4 689 689 VBoxOGL2D_SDKS = QT4 690 VBoxOGL2D_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) 690 VBoxOGL2D_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL 691 691 VBoxOGL2D_QT_MODULES += OpenGL 692 692 VBoxOGL2D_SOURCES = \ 693 693 src/VBoxGLSupportInfo.cpp 694 VBoxOGL2D_INCS = include 694 695 endif 695 696 endif -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h
r23740 r23746 22 22 #ifndef __VBoxFBOverlay_h__ 23 23 #define __VBoxFBOverlay_h__ 24 #if defined (VBOX_GUI_USE_QGL) 24 #if defined (VBOX_GUI_USE_QGL) || defined(VBOX_WITH_VIDEOHWACCEL) 25 25 26 26 //#define VBOXQGL_PROF_BASE 1 … … 33 33 34 34 #include <VBox/VBoxGL2D.h> 35 #include "VBoxFBOverlayCommon.h" 35 36 36 37 #define VBOXVHWA_ALLOW_PRIMARY_AND_OVERLAY_ONLY 1 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGLSupportInfo.cpp
r23743 r23746 35 35 36 36 #include <VBox/VBoxGL2D.h> 37 #include "VBoxFBOverlayCommon.h" 37 38 38 39 /*****************/
Note:
See TracChangeset
for help on using the changeset viewer.