summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--media/base/yuv_convert.cc7
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 {