summaryrefslogtreecommitdiffstats
path: root/cc/trees/thread_proxy.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-05 22:38:51 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-05 22:38:51 +0000
commitbac0e556066f3b10a46a0c479a25096acc07e40c (patch)
treeee769163851dd08b21f11148dee67730996d451b /cc/trees/thread_proxy.h
parent86137956129413201db0be8c9d94f601b63ade61 (diff)
downloadchromium_src-bac0e556066f3b10a46a0c479a25096acc07e40c.zip
chromium_src-bac0e556066f3b10a46a0c479a25096acc07e40c.tar.gz
chromium_src-bac0e556066f3b10a46a0c479a25096acc07e40c.tar.bz2
cc: Don't ManageTiles twice in one frame
Any external callers of ManageTiles should inform the Scheduler that ManageTiles happened so that (1) it can clear the "needs manage tiles" flag and (2) it can avoid doing a second ManageTiles on the same frame. Other than after commit, where ManageTiles needs to be called immediately in order to kick off new raster tasks (or determine that no raster tasks are required to activate the tree), ManageTiles just needs to be called periodically to keep the raster jobs working on the most important content. Delaying the periodic caller to prevent these bad frames with commits is a worthwhile tradeoff. R=brianderson@chromium.org BUG=314882 Review URL: https://codereview.chromium.org/45923005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/thread_proxy.h')
-rw-r--r--cc/trees/thread_proxy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/trees/thread_proxy.h b/cc/trees/thread_proxy.h
index 3a213b9..0bd1f4b 100644
--- a/cc/trees/thread_proxy.h
+++ b/cc/trees/thread_proxy.h
@@ -90,6 +90,7 @@ class ThreadProxy : public Proxy,
virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay)
OVERRIDE;
virtual void DidActivatePendingTree() OVERRIDE;
+ virtual void DidManageTiles() OVERRIDE;
// SchedulerClient implementation
virtual void SetNeedsBeginImplFrame(bool enable) OVERRIDE;