Files
platform-external-webrtc/modules/desktop_capture/win
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
..
2019-07-08 13:45:15 +00:00
2018-07-25 14:59:26 +00:00
2018-06-19 14:00:39 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2018-06-19 14:00:39 +00:00