7f509e13139a9683b2fd548a2e5270e9da057763

For Non-DPI aware windows, we need to figure out the current DPI and scale the content accordingly, the current behavior works ok for until the clipped region pushes the content outside of the frame and then the capture will fail. When this happens, the captured frame may be blank or it could cause the browser to crash. The issue is that the left and top clipped regions are not being scaled along with the content (the captured window region is contained within a larger window frame). When the clipped window and window frame are scaled, the original offset for left and top are not adjusted so after a certain DPI, this offset causes the clipped region to get pushed outside of the frame which is why the capture fails. The fix is to scale the left and top clipped regions and translate the clipped region accordingly. This change will only affect non-DPI aware windows. Bug: chromium:1083527 Change-Id: I893c2cb362cbaa01170d1e58465e43c3517139ad Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/183660 Commit-Queue: Joe Downing <joedow@google.com> Reviewed-by: Jamie Walch <jamiewalch@chromium.org> Cr-Commit-Position: refs/heads/master@{#32065}
…
…
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.
Development
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.
More info
- Official web site: http://www.webrtc.org
- Master source code repo: https://webrtc.googlesource.com/src
- Samples and reference apps: https://github.com/webrtc
- Mailing list: http://groups.google.com/group/discuss-webrtc
- Continuous build: http://build.chromium.org/p/client.webrtc
- Coding style guide
- Code of conduct
Description
Languages
C++
88.6%
C
3.3%
Java
3%
Objective-C++
1.9%
Python
1.9%
Other
1%