diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-12 13:14:50 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-12 13:14:50 +0000 |
commit | 308aaa31d91a166e8223a89cb84559bc80d2d1bb (patch) | |
tree | 60ba4da48debe70775e51ef11e8b0102f631922a /ui/aura/aura_switches.cc | |
parent | 8dd47cee2b818984f5f11a652574681b63dfc00a (diff) | |
download | chromium_src-308aaa31d91a166e8223a89cb84559bc80d2d1bb.zip chromium_src-308aaa31d91a166e8223a89cb84559bc80d2d1bb.tar.gz chromium_src-308aaa31d91a166e8223a89cb84559bc80d2d1bb.tar.bz2 |
Reland 125850 - Aura: Throttle resize to ability to draw
At the root_window.cc level we defer mouse events triggering a resize while a draw is pending. We are careful to keep the sequence of different event types the same. But we aggregate synthetic mouse moves and mouse drags wwhere possible.
In RWHVA, we ask the root window to throttle the resize if we are waiting on the GPU process for a new image. The net result is that UI can only be one frame ahead of the tab contents that are being resized.
BUG=58782
TEST=goto google.com with --force-compositing-mode; resize the window by stretching to the right; see very little gap between tab contents and window frame
Review URL: https://chromiumcodereview.appspot.com/9662020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/aura_switches.cc')
-rw-r--r-- | ui/aura/aura_switches.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/aura/aura_switches.cc b/ui/aura/aura_switches.cc index bb4aa47..f0ec044 100644 --- a/ui/aura/aura_switches.cc +++ b/ui/aura/aura_switches.cc @@ -8,6 +8,9 @@ namespace switches { +// Enable the holding of mouse movements in order to throttle window resizing. +const char kAuraDisableHoldMouseMoves[] = "aura-disable-hold-mouse-moves"; + // Initial dimensions for the host window in the form "1024x768". const char kAuraHostWindowSize[] = "aura-host-window-size"; |