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 <jamiewalch@chromium.org>
Commit-Queue: Zijie He <zijiehe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19192}
This commit is contained in:
Zijie He
2017-07-28 11:46:43 -07:00
committed by Commit Bot
parent 5af2af36ee
commit df6e07c7e2

View File

@ -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_) {