| Index: webrtc/modules/desktop_capture/x11/shared_x_display.cc
|
| diff --git a/webrtc/modules/desktop_capture/x11/shared_x_display.cc b/webrtc/modules/desktop_capture/x11/shared_x_display.cc
|
| index 3eb5eb10a9e05e85beaa51eda20ed8d8fd0177c7..c5b9bd914c3bc0ddfb415cd1920571406fed39d7 100644
|
| --- a/webrtc/modules/desktop_capture/x11/shared_x_display.cc
|
| +++ b/webrtc/modules/desktop_capture/x11/shared_x_display.cc
|
| @@ -10,19 +10,22 @@
|
|
|
| #include "webrtc/modules/desktop_capture/x11/shared_x_display.h"
|
|
|
| +#include <X11/Xlib.h>
|
| +
|
| #include <algorithm>
|
|
|
| +#include "webrtc/base/checks.h"
|
| #include "webrtc/system_wrappers/include/logging.h"
|
|
|
| namespace webrtc {
|
|
|
| SharedXDisplay::SharedXDisplay(Display* display)
|
| : display_(display) {
|
| - assert(display_);
|
| + RTC_DCHECK(display_);
|
| }
|
|
|
| SharedXDisplay::~SharedXDisplay() {
|
| - assert(event_handlers_.empty());
|
| + RTC_DCHECK(event_handlers_.empty());
|
| XCloseDisplay(display_);
|
| }
|
|
|
|
|