From df6e07c7e2d28598c5e367ce58d3b80334147574 Mon Sep 17 00:00:00 2001 From: Zijie He Date: Fri, 28 Jul 2017 11:46:43 -0700 Subject: [PATCH] Do not reset resolution_tracker_ in DxgiFrame::PrepareFrame() resolution_tracker_ should always represent the size of the DxgiFrame::frame_. So it should not be actively reset. Bug: webrtc:8045 Change-Id: I0b4d70ea69e4c2febfa369de50b555287c41fd99 Reviewed-on: https://chromium-review.googlesource.com/592248 Reviewed-by: Jamie Walch Commit-Queue: Zijie He Cr-Commit-Position: refs/heads/master@{#19192} --- webrtc/modules/desktop_capture/win/dxgi_frame.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/webrtc/modules/desktop_capture/win/dxgi_frame.cc b/webrtc/modules/desktop_capture/win/dxgi_frame.cc index 884c63aec8..d0af1f9349 100644 --- a/webrtc/modules/desktop_capture/win/dxgi_frame.cc +++ b/webrtc/modules/desktop_capture/win/dxgi_frame.cc @@ -36,7 +36,6 @@ bool DxgiFrame::Prepare(DesktopSize size, DesktopCapturer::SourceId source_id) { if (resolution_tracker_.SetResolution(size)) { // Once the output size changed, recreate the SharedDesktopFrame. frame_.reset(); - resolution_tracker_.Reset(); } if (!frame_) {