Commit bf1dfd59 authored by varkha's avatar varkha Committed by Commit bot

[ash-md] Disables rounded corners by default in overview mode

This CL only changes the default for the --ash-max-previews-to-use-mask
runtime flag to 0 (from 10). Not using masks seems to improve animation.

BUG=632825
TEST=None

Review-Url: https://codereview.chromium.org/2193403002
Cr-Commit-Position: refs/heads/master@{#408748}
parent 7f1d9ad6
......@@ -76,7 +76,9 @@ const int kMinCardsMajor = 3;
// Hiding window headers can be resource intensive. Only hide the headers when
// the number of windows in this grid is less or equal than this number.
const int kMaxWindowsCountToHideHeader = 10;
// The default is 0, meaning that mask layers are never used and the bottom
// corners are not rounded in overview.
const int kMaxWindowsCountToHideHeaderWithMasks = 0;
const int kOverviewSelectorTransitionMilliseconds = 250;
......@@ -462,13 +464,13 @@ void WindowGrid::PositionWindowsMD(bool animate) {
const size_t windows_count = window_list_.size();
const base::CommandLine* command_line =
base::CommandLine::ForCurrentProcess();
int windows_to_use_masks = kMaxWindowsCountToHideHeader;
int windows_to_use_masks = kMaxWindowsCountToHideHeaderWithMasks;
if (command_line->HasSwitch(switches::kAshMaxWindowsToUseMaskInOverview) &&
(!base::StringToInt(command_line->GetSwitchValueASCII(
switches::kAshMaxWindowsToUseMaskInOverview),
&windows_to_use_masks) ||
windows_to_use_masks <= kUnlimited)) {
windows_to_use_masks = kMaxWindowsCountToHideHeader;
windows_to_use_masks = kMaxWindowsCountToHideHeaderWithMasks;
}
int windows_to_use_shapes = kUnlimited;
if (command_line->HasSwitch(switches::kAshMaxWindowsToUseShapeInOverview) &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment