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

Issue 12040058: Add support for high-DPI hosts under Mac OS X. (Closed)

Created:
7 years, 11 months ago by Wez
Modified:
7 years, 11 months ago
Reviewers:
Nico, Jamie
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, sail+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Add support for high-DPI hosts under Mac OS X. - Moves enumeration of display configuration(s) to helper classes, which fetch each display's logical and device-native resolutions. - Updates VideoFrameCapturerMac and EventExecutorMac to use the helper. This is a re-land of r178318, which was reverted because it didn't build under the Mac OS X 10.6 SDK. BUG=135081 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178761

Patch Set 1 #

Patch Set 2 : Fix for OS X 10.6. #

Total comments: 16

Patch Set 3 : Fix convertRectToBacking: check. #

Patch Set 4 : Use DIPs terminology and derive DPI from DIPs-to-pixels scale in VideoFrameCapturerMac. #

Patch Set 5 : Fix indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -94 lines) Patch
A remoting/capturer/mac/desktop_configuration.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A remoting/capturer/mac/desktop_configuration.mm View 1 2 3 1 chunk +106 lines, -0 lines 0 comments Download
M remoting/capturer/video_frame_capturer_mac.mm View 1 2 3 16 chunks +73 lines, -63 lines 0 comments Download
M remoting/host/event_executor_mac.cc View 1 2 3 3 chunks +22 lines, -30 lines 0 comments Download
M remoting/remoting.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M skia/ext/skia_utils_mac.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Wez
PTAL This now builds on 10.6 but I still need to find a 10.6 system ...
7 years, 11 months ago (2013-01-24 00:12:24 UTC) #1
Jamie
Changes LGTM. https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.mm File remoting/capturer/mac/desktop_configuration.mm (right): https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.mm#newcode13 remoting/capturer/mac/desktop_configuration.mm:13: MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 Nit: indent the continuation ...
7 years, 11 months ago (2013-01-24 00:20:18 UTC) #2
Nico
lgtm https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.h File remoting/capturer/mac/desktop_configuration.h (right): https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.h#newcode28 remoting/capturer/mac/desktop_configuration.h:28: // Bounds of this display in logical (72dpi) ...
7 years, 11 months ago (2013-01-24 00:26:58 UTC) #3
Wez
https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.h File remoting/capturer/mac/desktop_configuration.h (right): https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.h#newcode28 remoting/capturer/mac/desktop_configuration.h:28: // Bounds of this display in logical (72dpi) coordinates. ...
7 years, 11 months ago (2013-01-24 00:57:30 UTC) #4
Nico
https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.mm File remoting/capturer/mac/desktop_configuration.mm (right): https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.mm#newcode58 remoting/capturer/mac/desktop_configuration.mm:58: [screen respondsToSelector:@selector(convertRectToBacking)]) { On 2013/01/24 00:57:30, Wez wrote: > ...
7 years, 11 months ago (2013-01-24 00:58:30 UTC) #5
Wez
On 2013/01/24 00:58:30, Nico wrote: > https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.mm > File remoting/capturer/mac/desktop_configuration.mm (right): > > https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.mm#newcode58 > ...
7 years, 11 months ago (2013-01-24 00:59:38 UTC) #6
Wez
https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.h File remoting/capturer/mac/desktop_configuration.h (right): https://chromiumcodereview.appspot.com/12040058/diff/2002/remoting/capturer/mac/desktop_configuration.h#newcode28 remoting/capturer/mac/desktop_configuration.h:28: // Bounds of this display in logical (72dpi) coordinates. ...
7 years, 11 months ago (2013-01-25 00:32:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/12040058/4004
7 years, 11 months ago (2013-01-25 00:34:08 UTC) #8
commit-bot: I haz the power
7 years, 11 months ago (2013-01-25 05:08:10 UTC) #9
Message was sent while issue was closed.
Change committed as 178761

Powered by Google App Engine
This is Rietveld 408576698