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

Issue 2146323004: [ash-md] Improves smoothness with many windows in overview (Closed)

Created:
4 years, 5 months ago by varkha
Modified:
4 years, 5 months ago
Reviewers:
tdanderson, oshima, rkaplow
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ash-md] Improves smoothness with many windows in overview Experimentally, most of the animation cost was coming from having window shapes (used to mask the window header) and from using rounded rectangle masks. This CL disables both those performance hogs when there are more than certain number of windows in the overview mode (controlled via flags). Default is set to hardcoded 10. It also makes sure that window controls (minimize / resize / close) are hidden when in overview mode for custom and panel frames. New flags are introduced: --ash-max-previews-to-use-mask=<number> Maximum number of preview windows in overview mode that can use masks to hide window headers and use rounded corners. Use -1 to set to unlimited. --ash-max-previews-to-use-shape=<number> Maximum number of preview windows in overview mode that can use shapes to hide window headers. Use -1 to set to unlimited. BUG=626851 BUG=624608 Committed: https://crrev.com/d8748a3907d55ade9282b8cf4d0993ac9ee5ab66 Cr-Commit-Position: refs/heads/master@{#406286}

Patch Set 1 #

Patch Set 2 : [ash-md] Improves smoothness with many windows in overview (rebased) #

Total comments: 6

Patch Set 3 : [ash-md] Improves smoothness with many windows in overview (added flags) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -48 lines) Patch
M ash/common/ash_switches.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/ash_switches.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M ash/common/wm/overview/scoped_transform_overview_window.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M ash/common/wm/overview/scoped_transform_overview_window.cc View 1 2 5 chunks +26 lines, -14 lines 0 comments Download
M ash/common/wm/overview/window_grid.cc View 1 2 4 chunks +34 lines, -1 line 0 comments Download
M ash/common/wm/overview/window_selector_item.h View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
M ash/common/wm/overview/window_selector_item.cc View 1 2 7 chunks +17 lines, -9 lines 0 comments Download
M ash/frame/custom_frame_view_ash.cc View 3 chunks +13 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_frame_view.h View 5 chunks +10 lines, -4 lines 0 comments Download
M ash/wm/panels/panel_frame_view.cc View 4 chunks +28 lines, -10 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 6 chunks +46 lines, -9 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (29 generated)
varkha
tdanderson@, can you please take a first look when you are back. oshima@, can you ...
4 years, 5 months ago (2016-07-15 01:51:10 UTC) #5
oshima
can you explain why caption controls are causing the performance issue?
4 years, 5 months ago (2016-07-15 23:37:48 UTC) #8
varkha
On 2016/07/15 23:37:48, oshima wrote: > can you explain why caption controls are causing the ...
4 years, 5 months ago (2016-07-16 01:13:25 UTC) #9
tdanderson
lgtm with one suggestion and a couple of nits https://chromiumcodereview.appspot.com/2146323004/diff/20001/ash/common/wm/overview/scoped_transform_overview_window.h File ash/common/wm/overview/scoped_transform_overview_window.h (right): https://chromiumcodereview.appspot.com/2146323004/diff/20001/ash/common/wm/overview/scoped_transform_overview_window.h#newcode108 ash/common/wm/overview/scoped_transform_overview_window.h:108: ...
4 years, 5 months ago (2016-07-18 16:26:58 UTC) #10
oshima
lgtm
4 years, 5 months ago (2016-07-18 22:07:08 UTC) #11
varkha
https://codereview.chromium.org/2146323004/diff/20001/ash/common/wm/overview/scoped_transform_overview_window.h File ash/common/wm/overview/scoped_transform_overview_window.h (right): https://codereview.chromium.org/2146323004/diff/20001/ash/common/wm/overview/scoped_transform_overview_window.h#newcode108 ash/common/wm/overview/scoped_transform_overview_window.h:108: // using rounded corners of |radius|. When |use_masks| is ...
4 years, 5 months ago (2016-07-19 00:29:07 UTC) #17
varkha
+rkaplow@ for OWNERS. Added flags in tools/metrics/histograms/histograms.xml.
4 years, 5 months ago (2016-07-19 00:55:04 UTC) #25
rkaplow
lgtm
4 years, 5 months ago (2016-07-19 15:29:44 UTC) #33
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/2146323004/120001
4 years, 5 months ago (2016-07-19 15:58:37 UTC) #36
commit-bot: I haz the power
Committed patchset #3 (id:120001)
4 years, 5 months ago (2016-07-19 16:04:01 UTC) #38
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 16:04:05 UTC) #39
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 16:05:26 UTC) #41
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d8748a3907d55ade9282b8cf4d0993ac9ee5ab66
Cr-Commit-Position: refs/heads/master@{#406286}

Powered by Google App Engine
This is Rietveld 408576698