Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Issue 2588973002: Fix a screen capture issue on retina macOS devices. (Closed)

Created:
4 years ago by erikchen
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix a screen capture issue on retina macOS devices. The CGDisplayStream API returns rects in physical pixel coordinates, not Density-Independent Pixel coordinates. The code was incorrectly re-applying the dip_to_pixel scaling. BUG=chromium:675490 Review-Url: https://codereview.webrtc.org/2588973002 Cr-Commit-Position: refs/heads/master@{#15720} Committed: https://chromium.googlesource.com/external/webrtc/+/494dff4c079910f0033e3ed63c975c791d6ded37

Patch Set 1 #

Total comments: 5

Patch Set 2 : Comments from sergeyu. #

Patch Set 3 : Fix. #

Total comments: 2

Patch Set 4 : Comments from sergeyu. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M webrtc/modules/desktop_capture/screen_capturer_mac.mm View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
erikchen
braveoyao, sergeyu: PTAL
4 years ago (2016-12-20 00:10:16 UTC) #5
Sergey Ulanov
https://codereview.webrtc.org/2588973002/diff/1/webrtc/modules/desktop_capture/screen_capturer_mac.mm File webrtc/modules/desktop_capture/screen_capturer_mac.mm (left): https://codereview.webrtc.org/2588973002/diff/1/webrtc/modules/desktop_capture/screen_capturer_mac.mm#oldcode958 webrtc/modules/desktop_capture/screen_capturer_mac.mm:958: updateRef, kCGDisplayStreamUpdateDirtyRects, &count); FWIW kCGDisplayStreamUpdateDirtyRects is document as "The ...
4 years ago (2016-12-20 00:47:04 UTC) #6
erikchen
Here is an example of a single callback, and all the rects returned: """ pre ...
4 years ago (2016-12-20 01:18:27 UTC) #9
erikchen
On 2016/12/20 01:18:27, erikchen wrote: > Here is an example of a single callback, and ...
4 years ago (2016-12-20 02:58:35 UTC) #10
erikchen
sergeyu: PTAL The main issue was that the rects given to use by CG are ...
4 years ago (2016-12-20 03:11:24 UTC) #11
Sergey Ulanov
https://codereview.webrtc.org/2588973002/diff/40001/webrtc/modules/desktop_capture/screen_capturer_mac.mm File webrtc/modules/desktop_capture/screen_capturer_mac.mm (right): https://codereview.webrtc.org/2588973002/diff/40001/webrtc/modules/desktop_capture/screen_capturer_mac.mm#newcode962 webrtc/modules/desktop_capture/screen_capturer_mac.mm:962: updateRef, kCGDisplayStreamUpdateMovedRects, &count); I would still prefer to use ...
4 years ago (2016-12-20 18:56:51 UTC) #16
erikchen
sergeyu: PTAL
4 years ago (2016-12-20 22:42:58 UTC) #18
Sergey Ulanov
LGTM. Thank you for the fix!
4 years ago (2016-12-20 23:57:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2588973002/60001
4 years ago (2016-12-21 00:21:56 UTC) #21
commit-bot: I haz the power
4 years ago (2016-12-21 01:00:27 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/external/webrtc/+/494dff4c079910f0033e3ed63...

Powered by Google App Engine
This is Rietveld 408576698