VirtualBox

Ignore:
Timestamp:
Oct 31, 2011 1:37:06 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74608
Message:

wddm: avoid unnecessary window creation (caused img flickering for MacOS guest), etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/common/VBoxVideoLog.h

    r38331 r39150  
    6767    } while (0)
    6868
     69#ifdef VBOX_WDDM_MINIPORT
     70# define _WARN_LOGGER LogRel
     71#else
     72# define _WARN_LOGGER Log
     73#endif
     74
    6975#define WARN_NOBP(_a)                                                          \
    7076    do                                                                            \
    7177    {                                                                             \
    72         Log((VBOX_VIDEO_LOG_PREFIX_FMT"WARNING! ", VBOX_VIDEO_LOG_PREFIX_PARMS)); \
    73         Log(_a);                                                                  \
    74         Log((VBOX_VIDEO_LOG_SUFFIX_FMT VBOX_VIDEO_LOG_SUFFIX_PARMS));             \
     78        _WARN_LOGGER((VBOX_VIDEO_LOG_PREFIX_FMT"WARNING! ", VBOX_VIDEO_LOG_PREFIX_PARMS)); \
     79        _WARN_LOGGER(_a);                                                                  \
     80        _WARN_LOGGER((VBOX_VIDEO_LOG_SUFFIX_FMT VBOX_VIDEO_LOG_SUFFIX_PARMS));             \
    7581    } while (0)
    7682
     
    8086        WARN_NOBP(_a);                                                         \
    8187        BP_WARN();                                                             \
     88    } while (0)
     89
     90#define ASSERT_WARN(_a, _w) do {\
     91        if(!(_a)) { \
     92            WARN(_w); \
     93        }\
    8294    } while (0)
    8395
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