diff --git a/webrtc/modules/desktop_capture/screen_capturer_x11.cc b/webrtc/modules/desktop_capture/screen_capturer_x11.cc index 75655762e9..e34beda7b7 100644 --- a/webrtc/modules/desktop_capture/screen_capturer_x11.cc +++ b/webrtc/modules/desktop_capture/screen_capturer_x11.cc @@ -18,6 +18,7 @@ #include #include +#include "webrtc/base/checks.h" #include "webrtc/base/scoped_ptr.h" #include "webrtc/modules/desktop_capture/desktop_capture_options.h" #include "webrtc/modules/desktop_capture/desktop_frame.h" @@ -28,18 +29,7 @@ #include "webrtc/system_wrappers/interface/logging.h" #include "webrtc/system_wrappers/interface/tick_util.h" -// TODO(sergeyu): Move this to a header where it can be shared. -#if defined(NDEBUG) -#define RTC_DCHECK(condition) (void)(condition) -#else // NDEBUG -#define RTC_DCHECK(condition) \ - if (!(condition)) { \ - abort(); \ - } -#endif - namespace webrtc { - namespace { // A class to perform video frame capturing for Linux.