| Index: webrtc/modules/desktop_capture/screen_capturer_x11.cc
|
| diff --git a/webrtc/modules/desktop_capture/screen_capturer_x11.cc b/webrtc/modules/desktop_capture/screen_capturer_x11.cc
|
| index 4848235e3f70baf647912c353344face73e704e7..65e682b6f8bdc1bd28ba99d515077122fc105adb 100644
|
| --- a/webrtc/modules/desktop_capture/screen_capturer_x11.cc
|
| +++ b/webrtc/modules/desktop_capture/screen_capturer_x11.cc
|
| @@ -26,7 +26,6 @@
|
| #include "webrtc/modules/desktop_capture/differ.h"
|
| #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h"
|
| #include "webrtc/modules/desktop_capture/screen_capturer_helper.h"
|
| -#include "webrtc/modules/desktop_capture/shared_desktop_frame.h"
|
| #include "webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h"
|
| #include "webrtc/system_wrappers/include/logging.h"
|
| #include "webrtc/system_wrappers/include/tick_util.h"
|
| @@ -107,7 +106,7 @@
|
| ScreenCapturerHelper helper_;
|
|
|
| // Queue of the frames buffers.
|
| - ScreenCaptureFrameQueue<SharedDesktopFrame> queue_;
|
| + ScreenCaptureFrameQueue queue_;
|
|
|
| // Invalid region from the previous capture. This is used to synchronize the
|
| // current with the last buffer used.
|
| @@ -238,7 +237,6 @@
|
| TickTime capture_start_time = TickTime::Now();
|
|
|
| queue_.MoveToNextFrame();
|
| - RTC_DCHECK(!queue_.current_frame() || !queue_.current_frame()->IsShared());
|
|
|
| // Process XEvents for XDamage and cursor shape tracking.
|
| options_.x_display()->ProcessPendingXEvents();
|
| @@ -258,7 +256,7 @@
|
| if (!queue_.current_frame()) {
|
| std::unique_ptr<DesktopFrame> frame(
|
| new BasicDesktopFrame(x_server_pixel_buffer_.window_size()));
|
| - queue_.ReplaceCurrentFrame(SharedDesktopFrame::Wrap(frame.release()));
|
| + queue_.ReplaceCurrentFrame(frame.release());
|
| }
|
|
|
| // Refresh the Differ helper used by CaptureFrame(), if needed.
|
|
|