summaryrefslogtreecommitdiffstats
path: root/cc/thread_proxy.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-20 02:57:27 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-20 02:57:27 +0000
commit2e7ca42d140fd97197b4c73513197da3855d214c (patch)
treee9523b9e9fb544ed53652f7029485c634cb73505 /cc/thread_proxy.h
parente8522294bd6a74d665fa8dabf7d8c71e747c67f8 (diff)
downloadchromium_src-2e7ca42d140fd97197b4c73513197da3855d214c.zip
chromium_src-2e7ca42d140fd97197b4c73513197da3855d214c.tar.gz
chromium_src-2e7ca42d140fd97197b4c73513197da3855d214c.tar.bz2
cc: Add pending tree for impl-side painting
Do tree synchronization to pending tree. Inform scheduler when there is a pending tree so that vsync can continue to be scheduled. Right now everything is hooked through redraw, so canDraw is true when there is a pending tree, prepareToDraw is the one that checks for tree swap, and TileManager::DidFinishTileInitialization ends up calling setNeedsRedraw. I'm not sure this is ideal, but it's a start. BUG=155209 Review URL: https://chromiumcodereview.appspot.com/11569040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174089 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/thread_proxy.h')
-rw-r--r--cc/thread_proxy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/thread_proxy.h b/cc/thread_proxy.h
index 8c8feea..5320ee2 100644
--- a/cc/thread_proxy.h
+++ b/cc/thread_proxy.h
@@ -61,6 +61,7 @@ public:
virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE;
virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDelta interval) OVERRIDE;
virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE;
+ virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE;
virtual void setNeedsRedrawOnImplThread() OVERRIDE;
virtual void setNeedsCommitOnImplThread() OVERRIDE;
virtual void setNeedsManageTilesOnImplThread() OVERRIDE;