|
|
DescriptionEnable Per-Monitor Support for Windows 10
This allows Chrome to render at the native resolution on each display on
Windows 10.
BUG=426656, 624672
Committed: https://crrev.com/c110f1855d378172bcb74e0c26640bfc0d35d02d
Cr-Commit-Position: refs/heads/master@{#403329}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove Channel Check #
Total comments: 2
Patch Set 3 : Add Comment #
Depends on Patchset: Messages
Total messages: 40 (14 generated)
The CQ bit was checked by robliao@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
robliao@chromium.org changed reviewers: + thestig@chromium.org
thestig: Please review this changelist. Thanks!
thestig@chromium.org changed reviewers: + scottmg@chromium.org
scottmg: Can you chime in on whether chrome_initial can depend on chrome/common? Would it drag in too much code? https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn File chrome/BUILD.gn (right): https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn#newcode138 chrome/BUILD.gn:138: "//chrome/common", Has Windows switched to GN yet? If not, don't you need to change GYP to match?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
On 2016/06/30 01:55:40, Lei Zhang wrote: > scottmg: Can you chime in on whether chrome_initial can depend on chrome/common? > Would it drag in too much code? Yes, we don't want all of chrome in chrome.exe as well as chrome.dll, so that is not a good idea. (we should probably add some more assert_no_deps in gn to help make that clearer I guess) > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn > File chrome/BUILD.gn (right): > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn#newcode138 > chrome/BUILD.gn:138: "//chrome/common", > Has Windows switched to GN yet? If not, don't you need to change GYP to match?
On 2016/06/30 05:05:52, scottmg wrote: > On 2016/06/30 01:55:40, Lei Zhang wrote: > > scottmg: Can you chime in on whether chrome_initial can depend on > chrome/common? > > Would it drag in too much code? > > Yes, we don't want all of chrome in chrome.exe as well as chrome.dll, so that is > not a good idea. > > (we should probably add some more assert_no_deps in gn to help make that clearer > I guess) > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn > > File chrome/BUILD.gn (right): > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn#newcode138 > > chrome/BUILD.gn:138: "//chrome/common", > > Has Windows switched to GN yet? If not, don't you need to change GYP to match? What's the best way to pull in channel_info these days? Explicit include?
On 2016/06/30 05:10:07, robliao wrote: > On 2016/06/30 05:05:52, scottmg wrote: > > On 2016/06/30 01:55:40, Lei Zhang wrote: > > > scottmg: Can you chime in on whether chrome_initial can depend on > > chrome/common? > > > Would it drag in too much code? > > > > Yes, we don't want all of chrome in chrome.exe as well as chrome.dll, so that > is > > not a good idea. > > > > (we should probably add some more assert_no_deps in gn to help make that > clearer > > I guess) > > > > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn > > > File chrome/BUILD.gn (right): > > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn#newcode138 > > > chrome/BUILD.gn:138: "//chrome/common", > > > Has Windows switched to GN yet? If not, don't you need to change GYP to > match? > > What's the best way to pull in channel_info these days? Explicit include? Why do you need channel_info for the < STABLE check? My understanding is that we try pretty strongly to avoid having different behaviour on different channels.
On 2016/06/30 05:18:17, scottmg wrote: > On 2016/06/30 05:10:07, robliao wrote: > > On 2016/06/30 05:05:52, scottmg wrote: > > > On 2016/06/30 01:55:40, Lei Zhang wrote: > > > > scottmg: Can you chime in on whether chrome_initial can depend on > > > chrome/common? > > > > Would it drag in too much code? > > > > > > Yes, we don't want all of chrome in chrome.exe as well as chrome.dll, so > that > > is > > > not a good idea. > > > > > > (we should probably add some more assert_no_deps in gn to help make that > > clearer > > > I guess) > > > > > > > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn > > > > File chrome/BUILD.gn (right): > > > > > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn#newcode138 > > > > chrome/BUILD.gn:138: "//chrome/common", > > > > Has Windows switched to GN yet? If not, don't you need to change GYP to > > match? > > > > What's the best way to pull in channel_info these days? Explicit include? > > Why do you need channel_info for the < STABLE check? My understanding is that we > try pretty strongly to avoid having different behaviour on different channels. I want to get some more testing coverage for per-monitor DPI. There are quite a few existing quirks today. The change fixes some quirks, but introduces some new quirks; some due to Windows's handling of per-monitor DPI, some that I'll need to fix in Chrome. It would be good to get a feel of what quirks are acceptable for stable before actually going to stable.
On 2016/06/30 05:28:04, robliao wrote: > On 2016/06/30 05:18:17, scottmg wrote: > > On 2016/06/30 05:10:07, robliao wrote: > > > On 2016/06/30 05:05:52, scottmg wrote: > > > > On 2016/06/30 01:55:40, Lei Zhang wrote: > > > > > scottmg: Can you chime in on whether chrome_initial can depend on > > > > chrome/common? > > > > > Would it drag in too much code? > > > > > > > > Yes, we don't want all of chrome in chrome.exe as well as chrome.dll, so > > that > > > is > > > > not a good idea. > > > > > > > > (we should probably add some more assert_no_deps in gn to help make that > > > clearer > > > > I guess) > > > > > > > > > > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn > > > > > File chrome/BUILD.gn (right): > > > > > > > > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn#newcode138 > > > > > chrome/BUILD.gn:138: "//chrome/common", > > > > > Has Windows switched to GN yet? If not, don't you need to change GYP to > > > match? > > > > > > What's the best way to pull in channel_info these days? Explicit include? > > > > Why do you need channel_info for the < STABLE check? My understanding is that > we > > try pretty strongly to avoid having different behaviour on different channels. > > I want to get some more testing coverage for per-monitor DPI. There are quite a > few existing quirks today. The change fixes some quirks, but introduces some new > quirks; some due to Windows's handling of per-monitor DPI, some that I'll need > to fix in Chrome. It would be good to get a feel of what quirks are acceptable > for stable before actually going to stable. I think we ought to gate on a flag, or an experiment, or something else for that then, but not on channel.
On 2016/06/30 05:30:18, scottmg wrote: > On 2016/06/30 05:28:04, robliao wrote: > > On 2016/06/30 05:18:17, scottmg wrote: > > > On 2016/06/30 05:10:07, robliao wrote: > > > > On 2016/06/30 05:05:52, scottmg wrote: > > > > > On 2016/06/30 01:55:40, Lei Zhang wrote: > > > > > > scottmg: Can you chime in on whether chrome_initial can depend on > > > > > chrome/common? > > > > > > Would it drag in too much code? > > > > > > > > > > Yes, we don't want all of chrome in chrome.exe as well as chrome.dll, so > > > that > > > > is > > > > > not a good idea. > > > > > > > > > > (we should probably add some more assert_no_deps in gn to help make that > > > > clearer > > > > > I guess) > > > > > > > > > > > > > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn > > > > > > File chrome/BUILD.gn (right): > > > > > > > > > > > > > > > https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn#newcode138 > > > > > > chrome/BUILD.gn:138: "//chrome/common", > > > > > > Has Windows switched to GN yet? If not, don't you need to change GYP > to > > > > match? > > > > > > > > What's the best way to pull in channel_info these days? Explicit include? > > > > > > Why do you need channel_info for the < STABLE check? My understanding is > that > > we > > > try pretty strongly to avoid having different behaviour on different > channels. > > > > I want to get some more testing coverage for per-monitor DPI. There are quite > a > > few existing quirks today. The change fixes some quirks, but introduces some > new > > quirks; some due to Windows's handling of per-monitor DPI, some that I'll need > > to fix in Chrome. It would be good to get a feel of what quirks are acceptable > > for stable before actually going to stable. > > I think we ought to gate on a flag, or an experiment, or something else for that > then, but not on channel. IIRC Chrome Variations aren't available at this stage of Chrome yet, especially since we haven't loaded chrome.dll, making an experiment a non-starter. Doesn't the flag infrastructure also live in chrome.dll?
On 2016/06/30 05:18:17, scottmg wrote: > Why do you need channel_info for the < STABLE check? My understanding is that we > try pretty strongly to avoid having different behaviour on different channels. Yes, thanks for reminding us of this. You could just turn it on without any channel checks, let it go to canary -> dev -> beta, and turn it off on the beta branch before beta goes to stable / once you get sufficient feedback.
Description was changed from ========== Enable Per-Monitor Support for Windows 10 and All Channels Except Stable This allows Chrome to render at the native resolution on each display on Windows 10 and on all channels except stable. BUG=426656 ========== to ========== Enable Per-Monitor Support for Windows 10 and All Channels Except Stable This allows Chrome to render at the native resolution on each display on Windows 10 and on all channels except stable. BUG=426656,624672 ==========
Description was changed from ========== Enable Per-Monitor Support for Windows 10 and All Channels Except Stable This allows Chrome to render at the native resolution on each display on Windows 10 and on all channels except stable. BUG=426656,624672 ========== to ========== Enable Per-Monitor Support for Windows 10 This allows Chrome to render at the native resolution on each display on Windows 10. BUG=426656,624672 ==========
The CQ bit was checked by robliao@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
sgtm. That makes the patch easier. I've opened an M-53 Release Blocking Bug to track this then. Thanks! https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn File chrome/BUILD.gn (right): https://codereview.chromium.org/2114503002/diff/1/chrome/BUILD.gn#newcode138 chrome/BUILD.gn:138: "//chrome/common", On 2016/06/30 01:55:40, Lei Zhang wrote: > Has Windows switched to GN yet? If not, don't you need to change GYP to match? Obsoleted with latest patchset.
lgtm
https://codereview.chromium.org/2114503002/diff/20001/chrome/app/chrome_exe_m... File chrome/app/chrome_exe_main_win.cc (right): https://codereview.chromium.org/2114503002/diff/20001/chrome/app/chrome_exe_m... chrome/app/chrome_exe_main_win.cc:131: base::win::GetVersion() >= base::win::VERSION_WIN10 Why not >= VERSION_WIN8_1? If there's some good reason, a comment here.
https://codereview.chromium.org/2114503002/diff/20001/chrome/app/chrome_exe_m... File chrome/app/chrome_exe_main_win.cc (right): https://codereview.chromium.org/2114503002/diff/20001/chrome/app/chrome_exe_m... chrome/app/chrome_exe_main_win.cc:131: base::win::GetVersion() >= base::win::VERSION_WIN10 On 2016/06/30 17:06:29, scottmg wrote: > Why not >= VERSION_WIN8_1? If there's some good reason, a comment here. Done. Add this comment: // Enable per-monitor DPI for Win10 or above instead of Win8.1 since Win8.1 // does not have EnableChildWindowDpiMessage, necessary for correct non-client // area scaling across monitors.
The CQ bit was checked by robliao@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm (Exciting! Nice work. :)
On 2016/06/30 19:57:12, scottmg wrote: > lgtm (Exciting! Nice work. :) Thanks! But, I'm still not done yet! While Chrome is functional, there's definitely some fit-and-finish to apply, but at least we'll get sharp text on platforms with displays of differing DPIs.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by robliao@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from thestig@chromium.org Link to the patchset: https://codereview.chromium.org/2114503002/#ps40001 (title: "Add Comment")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Enable Per-Monitor Support for Windows 10 This allows Chrome to render at the native resolution on each display on Windows 10. BUG=426656,624672 ========== to ========== Enable Per-Monitor Support for Windows 10 This allows Chrome to render at the native resolution on each display on Windows 10. BUG=426656,624672 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
CQ bit was unchecked.
Message was sent while issue was closed.
Description was changed from ========== Enable Per-Monitor Support for Windows 10 This allows Chrome to render at the native resolution on each display on Windows 10. BUG=426656,624672 ========== to ========== Enable Per-Monitor Support for Windows 10 This allows Chrome to render at the native resolution on each display on Windows 10. BUG=426656,624672 Committed: https://crrev.com/c110f1855d378172bcb74e0c26640bfc0d35d02d Cr-Commit-Position: refs/heads/master@{#403329} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/c110f1855d378172bcb74e0c26640bfc0d35d02d Cr-Commit-Position: refs/heads/master@{#403329}
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2115963002/ by robliao@chromium.org. The reason for reverting is: Causes maximized incognito windows to render blank.. |