Index: webrtc/modules/desktop_capture/window_capturer_x11.cc |
diff --git a/webrtc/modules/desktop_capture/window_capturer_x11.cc b/webrtc/modules/desktop_capture/window_capturer_x11.cc |
index d88585bfa8052d34a0de60b58a8089d6a3992bca..e4a0917b9063dfd89a87eb906660d7d83040e409 100644 |
--- a/webrtc/modules/desktop_capture/window_capturer_x11.cc |
+++ b/webrtc/modules/desktop_capture/window_capturer_x11.cc |
@@ -95,7 +95,7 @@ class WindowCapturerLinux : public WindowCapturer, |
// DesktopCapturer interface. |
void Start(Callback* callback) override; |
- void Capture(const DesktopRegion& region) override; |
+ void CaptureFrame() override; |
// SharedXDisplay::XEventHandler interface. |
bool HandleXEvent(const XEvent& event) override; |
@@ -271,7 +271,7 @@ void WindowCapturerLinux::Start(Callback* callback) { |
callback_ = callback; |
} |
-void WindowCapturerLinux::Capture(const DesktopRegion& region) { |
+void WindowCapturerLinux::CaptureFrame() { |
if (!x_server_pixel_buffer_.IsWindowValid()) { |
LOG(LS_INFO) << "The window is no longer valid."; |
callback_->OnCaptureResult(Result::ERROR_PERMANENT, nullptr); |