Index: webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
index eafd7f3f2a3a3c025843f61fc141dd8150eccfde..d3035a15ca52d4c3f79aa2082c0dc4610e97f9ea 100644 |
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
@@ -14,7 +14,6 @@ |
#include <utility> |
-#include "webrtc/base/checks.h" |
#include "webrtc/modules/desktop_capture/desktop_capture_options.h" |
#include "webrtc/modules/desktop_capture/desktop_frame.h" |
#include "webrtc/modules/desktop_capture/desktop_frame_win.h" |
@@ -99,7 +98,6 @@ |
TickTime capture_start_time = TickTime::Now(); |
queue_.MoveToNextFrame(); |
- RTC_DCHECK(!queue_.current_frame() || !queue_.current_frame()->IsShared()); |
// Request that the system not power-down the system, or the display hardware. |
if (!SetThreadExecutionState(ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED)) { |
@@ -267,9 +265,9 @@ |
std::unique_ptr<DesktopFrame> buffer(DesktopFrameWin::Create( |
size, shared_memory_factory_.get(), desktop_dc_)); |
- if (!buffer) |
+ if (!buffer.get()) |
return false; |
- queue_.ReplaceCurrentFrame(SharedDesktopFrame::Wrap(buffer.release())); |
+ queue_.ReplaceCurrentFrame(buffer.release()); |
} |
// Select the target bitmap into the memory dc and copy the rect from desktop |