summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-29 21:11:00 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-29 21:11:00 +0000
commitcff176a476e0a9d9f0154d679a497fe21ed8b9ca (patch)
treefb726110b028659b36ab10f16fa6165d19af541e /ash
parentd88e17fa4882a14b86ac753780f20d9481d7d113 (diff)
downloadchromium_src-cff176a476e0a9d9f0154d679a497fe21ed8b9ca.zip
chromium_src-cff176a476e0a9d9f0154d679a497fe21ed8b9ca.tar.gz
chromium_src-cff176a476e0a9d9f0154d679a497fe21ed8b9ca.tar.bz2
Aura: ACK on the start of the frame generation for greater async.
By responding to AcceleratedSurfaceBuffersSwapped and AcceleratedSurfacePostSubBuffer early, we allow the GPU process to service the renderer while the browser UI is generating it's next frame. This buys us about 2 ms of processing according to chrome://tracing BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10692044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144990 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/wm/window_animations.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/ash/wm/window_animations.cc b/ash/wm/window_animations.cc
index 5628f0a..28a2480 100644
--- a/ash/wm/window_animations.cc
+++ b/ash/wm/window_animations.cc
@@ -6,6 +6,9 @@
#include <math.h>
+#include <algorithm>
+#include <vector>
+
#include "ash/ash_switches.h"
#include "ash/launcher/launcher.h"
#include "ash/shell.h"
@@ -192,8 +195,8 @@ class HidingWindowAnimationObserver : public ui::ImplicitAnimationObserver,
// visibility to 'false' when done. This doesn't need the complexity of
// HidingWindowAnimationObserver as the window isn't closing, and if it does a
// HidingWindowAnimationObserver will be created.
-class WorkspaceHidingWindowAnimationObserver :
- public ui::ImplicitAnimationObserver {
+class WorkspaceHidingWindowAnimationObserver
+ : public ui::ImplicitAnimationObserver {
public:
explicit WorkspaceHidingWindowAnimationObserver(aura::Window* window)
: layer_(window->layer()) {
@@ -563,6 +566,8 @@ class CrossFadeObserver : public ui::CompositorObserver,
}
// ui::CompositorObserver overrides:
+ virtual void OnCompositingWillStart(ui::Compositor* compositor) OVERRIDE {
+ }
virtual void OnCompositingStarted(ui::Compositor* compositor) OVERRIDE {
}
virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE {