Joe Downing 7f509e1313 Fixing a crash when capturing non-DPI aware windows at high DPIs
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}
2020-09-09 20:55:05 +00:00
2020-09-09 15:26:02 +00:00
2018-10-05 14:40:21 +00:00
2020-09-07 12:57:15 +00:00
2020-09-07 12:57:15 +00:00
2020-02-27 14:27:23 +00:00
2019-10-28 12:27:50 +00:00
2020-09-09 14:36:03 +00:00
2020-03-30 12:15:56 +00:00
2020-09-07 08:34:44 +00:00
2018-07-23 15:28:48 +00:00
2020-07-13 11:42:07 +00:00
2020-04-16 11:08:43 +00:00
2020-09-06 10:13:23 +00:00

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

Description
No description provided
Readme 255 MiB
Languages
C++ 88.6%
C 3.3%
Java 3%
Objective-C++ 1.9%
Python 1.9%
Other 1%