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

Issue 2056583002: Fix glass extension on MD for Win 7 and below. (Closed)

Created:
4 years, 6 months ago by Peter Kasting
Modified:
4 years, 6 months ago
CC:
chromium-reviews, tfarina, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix glass extension on MD for Win 7 and below. This also makes visible (but minor) changes on non-MD (the color of the innermost pixel of client edge shifts slightly). This is because we didn't previously inset the glass enough for the light pixel of edge to be completely inside the semitransparent client edge region. This also fixes the glass extension if we were to scale up larger than 200% somehow. All of these problems were caused by incorrectly computing the necessary extension. The biggest problem was that the code did not account for the innermost 2 px of glass being a very light and then very dark pixel. We need to inset by that amount additionally. The code also used the wrong mechanism to convert DIPs to pixels, which I think would have caused bugs on systems with multiple monitors with different DPI. BUG=614146 TEST=Start Chrome on Win 7 and verify there are no bright or dark lines across the window just above the bottom of the tabstrip. Committed: https://crrev.com/35ebe25ae437740f33a039fbf84af2855bc2f15b Cr-Commit-Position: refs/heads/master@{#400316}

Patch Set 1 #

Patch Set 2 : Finish #

Patch Set 3 : Resync #

Patch Set 4 : Resync #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -66 lines) Patch
M chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc View 1 5 chunks +50 lines, -50 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 chunks +17 lines, -15 lines 1 comment Download

Messages

Total messages: 15 (6 generated)
Peter Kasting
Bret, I'm not at my Win 7 machine until some time next week -- can ...
4 years, 6 months ago (2016-06-10 02:00:09 UTC) #3
Bret
On 2016/06/10 02:00:09, Peter Kasting wrote: > Bret, I'm not at my Win 7 machine ...
4 years, 6 months ago (2016-06-10 17:24:26 UTC) #4
Peter Kasting
I verified on Win 7 that this fixes the MD issues without regressing non-MD. Tested ...
4 years, 6 months ago (2016-06-16 01:26:47 UTC) #5
Peter Kasting
Ben, Bret isn't around today, and you helped me figure this out, want to take ...
4 years, 6 months ago (2016-06-16 20:21:26 UTC) #7
Ben Goodger (Google)
lgtm
4 years, 6 months ago (2016-06-16 22:52:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2056583002/60001
4 years, 6 months ago (2016-06-16 22:55:03 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-17 00:39:17 UTC) #12
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/35ebe25ae437740f33a039fbf84af2855bc2f15b Cr-Commit-Position: refs/heads/master@{#400316}
4 years, 6 months ago (2016-06-17 00:41:11 UTC) #14
Bret
4 years, 6 months ago (2016-06-17 20:43:16 UTC) #15
Message was sent while issue was closed.
On 2016/06/17 00:41:11, commit-bot: I haz the power wrote:
> Patchset 4 (id:??) landed as
> https://crrev.com/35ebe25ae437740f33a039fbf84af2855bc2f15b
> Cr-Commit-Position: refs/heads/master@{#400316}

retroactive lgtm

Powered by Google App Engine
This is Rietveld 408576698