diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-27 00:44:28 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-27 00:44:28 +0000 |
commit | 6b16679e5700658051a581bb61b37e5b542ef818 (patch) | |
tree | 9e9ed110b8a2685391959a77614f9fc18b4afe5f /cc/test | |
parent | ed6635eb5d07d0ad27a2a02ffeacf87c135090fe (diff) | |
download | chromium_src-6b16679e5700658051a581bb61b37e5b542ef818.zip chromium_src-6b16679e5700658051a581bb61b37e5b542ef818.tar.gz chromium_src-6b16679e5700658051a581bb61b37e5b542ef818.tar.bz2 |
Aura: Resize locks with --ui-enable-threaded-compositing
We temporarily defer commits while resizing so that the renderer has a chance to catch up with the UI window size.
Noteable changes from master:
- RWHVs can fast ACK the GPU process (not flip in the browser or TextureImageTransportSurface); useful for allowing the renderer to catch up when it gets too far behind.
- RWHVA will insist kicking a renderer frame after the lock times out on resize (wasn't necessary before)
- ui::Compositor vends draw locks (which largely just wraps to cc::Proxy) of ui::aura::RootWindow
BUG=136366
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10690168
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164460 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test')
-rw-r--r-- | cc/test/layer_tree_test_common.cc | 5 | ||||
-rw-r--r-- | cc/test/layer_tree_test_common.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cc/test/layer_tree_test_common.cc b/cc/test/layer_tree_test_common.cc index 686cd27..846e807 100644 --- a/cc/test/layer_tree_test_common.cc +++ b/cc/test/layer_tree_test_common.cc @@ -181,6 +181,11 @@ public: void setTestStarted(bool started) { m_testStarted = started; } + virtual void didDeferCommit() OVERRIDE + { + m_testHooks->didDeferCommit(); + } + private: MockLayerTreeHost(TestHooks* testHooks, cc::LayerTreeHostClient* client, const cc::LayerTreeSettings& settings) : LayerTreeHost(client, settings) diff --git a/cc/test/layer_tree_test_common.h b/cc/test/layer_tree_test_common.h index 91f9525..d1378c8 100644 --- a/cc/test/layer_tree_test_common.h +++ b/cc/test/layer_tree_test_common.h @@ -40,6 +40,7 @@ public: virtual void didCommit() { } virtual void didCommitAndDrawFrame() { } virtual void scheduleComposite() { } + virtual void didDeferCommit() { } // Implementation of WebAnimationDelegate virtual void notifyAnimationStarted(double time) OVERRIDE { } |