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:
@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user