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

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

Created:
4 years, 4 months ago by varkha
Modified:
4 years, 4 months ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2785
Target Ref:
refs/pending/branch-heads/2785
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 Review-Url: https://codereview.chromium.org/2146323004 Cr-Commit-Position: refs/heads/master@{#406286} (cherry picked from commit d8748a3907d55ade9282b8cf4d0993ac9ee5ab66) Committed: https://chromium.googlesource.com/chromium/src/+/fbfb5afbb61eac2a18e6b210ec4f40162357f612

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -43 lines) Patch
M ash/common/ash_switches.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/ash_switches.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M ash/common/wm/overview/scoped_transform_overview_window.h View 1 chunk +6 lines, -1 line 0 comments Download
M ash/common/wm/overview/scoped_transform_overview_window.cc View 5 chunks +26 lines, -14 lines 0 comments Download
M ash/common/wm/overview/window_grid.cc View 4 chunks +34 lines, -1 line 0 comments Download
M ash/common/wm/overview/window_selector_item.h View 3 chunks +14 lines, -0 lines 0 comments Download
M ash/common/wm/overview/window_selector_item.cc View 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 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 4 chunks +44 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
varkha
Committed patchset #1 (id:1) manually as fbfb5afbb61eac2a18e6b210ec4f40162357f612.
4 years, 4 months ago (2016-07-26 23:16:07 UTC) #2
Theresa
On 2016/07/26 23:16:07, varkha wrote: > Committed patchset #1 (id:1) manually as > fbfb5afbb61eac2a18e6b210ec4f40162357f612. This ...
4 years, 4 months ago (2016-07-29 22:59:13 UTC) #3
varkha
4 years, 4 months ago (2016-07-29 23:26:22 UTC) #4
Message was sent while issue was closed.
On 2016/07/29 22:59:13, Theresa Wellington wrote:
> On 2016/07/26 23:16:07, varkha wrote:
> > Committed patchset #1 (id:1) manually as
> > fbfb5afbb61eac2a18e6b210ec4f40162357f612.
> 
> This CL added // FLAGS:RECORD_UMA to enable-web-bluetooth causing presubmit to
> fail on a CL I just tried to land on branch 2785 
> 
> This was the error:
> ERROR:root:actions.xml is not formatted correctly; run extract_actions.py to
> fix.
> 
> ** Presubmit Messages **
> --tbr was specified, skipping OWNERS check
> 
> ** Presubmit ERRORS **
> actions.xml is not up to date or is not formatted correctly; run
> extract_actions.py to fix
> 
> 
> And the suggested fix was to add an action for <action
> name="AboutFlags_enable-web-bluetooth">
> 
> The flag/action were originally added in
> https://codereview.chromium.org/2096883003, which is not present on 2785
> 
> Will you please merge a CL to 2785 that adds this action? Also, if presubmit
ran
> when you submitted this CL and didn't complain, will you please file a bug for
> that?

Do I understand it correctly that you need to remove the // FLAGS:RECORD_UMA
comment added from merge in about_flags.cc? Is that the only thing? Used drover
to land this so I guess presubmit did not run.

Powered by Google App Engine
This is Rietveld 408576698