commit | 9d1ea5cc22f7f8801b6980d524b237088e01f4e1 | [log] [tgz] |
---|---|---|
author | zijiehe <zijiehe@chromium.org> | Mon Apr 24 11:50:05 2017 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Apr 24 18:50:05 2017 +0000 |
tree | 306d34eeed54c4f538fc303c52270015d8595f8d | |
parent | d8868637eef6a11fa2c049e351ac2e24d1080008 [diff] |
Clear DesktopFrame in DxgiFrame to avoid legacy image Once the buffer returned by Windows is not newly allocated, it may contain legacy images from previous capturing attempts. This usually is not a problem, as implementations other than ScreenCapturerWinDirectx paint each pixel on the frame. But due to the one capturer per monitor design of ScreenCapturerWinDirectx, part of the frame may not be covered by any DxgiOutputDuplicator, and cause the legacy image to be shown. So a very simple fix is to clear the DesktopFrame in DxgiFrame. BUG=708766 Review-Url: https://codereview.webrtc.org/2827983007 Cr-Commit-Position: refs/heads/master@{#17847}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.