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

Issue 2586653002: Improve CrOS WM shadow drawing for small windows. (Closed)

Created:
4 years ago by Evan Stade
Modified:
4 years ago
Reviewers:
James Cook
CC:
chromium-reviews, rsesek+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve CrOS WM shadow drawing for small windows. We can't fully imitate what CSS would do for a box shadow on a small box without redrawing the shadow for every height below a certain threshold. Instead, simply reduce the "elevation" of the shadows (which controls blur and offset) to something we can handle. This only has any effect on active windows that are shorter or narrower than 100dip, and it maintains a distinction between active and inactive all the way down to 36dip. It gets rid of the unsightly seam that our current strategy causes. Sebastien has agreed to this mitigation (although he might have additional feedback when he plays with it live, once it's on canary). BUG=608852 Committed: https://crrev.com/ec9aafe08581e34321ab003bb7c6b74b086d7f96 Cr-Commit-Position: refs/heads/master@{#439588}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : wrapping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -34 lines) Patch
M ui/wm/core/shadow.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/wm/core/shadow.cc View 1 2 2 chunks +30 lines, -28 lines 0 comments Download
M ui/wm/core/shadow_unittest.cc View 1 3 chunks +38 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
Evan Stade
This is the result of a couple of days of trying different strategies and is ...
4 years ago (2016-12-19 18:12:13 UTC) #9
James Cook
LGTM. Thanks for adding a test. https://codereview.chromium.org/2586653002/diff/20001/ui/wm/core/shadow.cc File ui/wm/core/shadow.cc (right): https://codereview.chromium.org/2586653002/diff/20001/ui/wm/core/shadow.cc#newcode146 ui/wm/core/shadow.cc:146: 2 * kRoundedCornerRadius) ...
4 years ago (2016-12-19 19:51:49 UTC) #12
Evan Stade
https://codereview.chromium.org/2586653002/diff/20001/ui/wm/core/shadow.cc File ui/wm/core/shadow.cc (right): https://codereview.chromium.org/2586653002/diff/20001/ui/wm/core/shadow.cc#newcode146 ui/wm/core/shadow.cc:146: 2 * kRoundedCornerRadius) / On 2016/12/19 19:51:49, James Cook ...
4 years ago (2016-12-19 21:09:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2586653002/40001
4 years ago (2016-12-19 21:10:38 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-19 22:20:58 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-19 22:23:35 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ec9aafe08581e34321ab003bb7c6b74b086d7f96
Cr-Commit-Position: refs/heads/master@{#439588}

Powered by Google App Engine
This is Rietveld 408576698