diff options
author | fbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-07 02:44:42 +0000 |
---|---|---|
committer | fbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-07 02:44:42 +0000 |
commit | f338ec0cd964d1fa38b67ceec290318390f8fd63 (patch) | |
tree | 76abaf61429b38082dea83dbba88d50e9c18bb48 /media | |
parent | c5afdbde93d1daf443c1cc8b3ecb5cae51f55f60 (diff) | |
download | chromium_src-f338ec0cd964d1fa38b67ceec290318390f8fd63.zip chromium_src-f338ec0cd964d1fa38b67ceec290318390f8fd63.tar.gz chromium_src-f338ec0cd964d1fa38b67ceec290318390f8fd63.tar.bz2 |
DCHECK affects performance in release build.
OFFICIAL_BUILD is okay, but this ifdef makes DCHECK only work in debug.
On 720p DCHECK version is 8.14 ms and without, its 2.68 ms
Review URL: http://codereview.chromium.org/40245
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11191 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/base/yuv_convert.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/base/yuv_convert.cc b/media/base/yuv_convert.cc index 85bf702..e1da09e 100644 --- a/media/base/yuv_convert.cc +++ b/media/base/yuv_convert.cc @@ -37,7 +37,14 @@ #include <omp.h> #endif +// DCHECK affects performance in release build. +// OFFICIAL_BUILD is okay, but this ifdef makes DCHECK only work in debug. +#ifndef NDEBUG #include "base/logging.h" +#else +#define DCHECK(a) +#endif + #include "media/base/yuv_convert.h" namespace media { |