Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc

Issue 2268093002: [WebRTC] A real ScreenCapturer test (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Resolve review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
index a09935fb01aad3a8aa67def08e5850c4656a392f..e4b2c3e8a225b397d4c67693baa646c2c98c34f3 100644
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
@@ -79,7 +79,7 @@ void ScreenCapturerWinDirectx::Capture(const DesktopRegion& region) {
if (current_screen_id == kFullDesktopScreenId) {
if (!DxgiDuplicatorController::Instance()->Duplicate(
- &context_, frames_.previous_frame(), frames_.current_frame())) {
+ &context_, frames_.current_frame())) {
// Screen size may be changed, so we need to reset the frames.
frames_.Reset();
callback_->OnCaptureResult(Result::ERROR_TEMPORARY, nullptr);
@@ -87,8 +87,7 @@ void ScreenCapturerWinDirectx::Capture(const DesktopRegion& region) {
}
} else {
if (!DxgiDuplicatorController::Instance()->DuplicateMonitor(
- &context_, current_screen_id, frames_.previous_frame(),
- frames_.current_frame())) {
+ &context_, current_screen_id, frames_.current_frame())) {
// Screen size may be changed, so we need to reset the frames.
frames_.Reset();
if (current_screen_id >=

Powered by Google App Engine
This is Rietveld 408576698