summaryrefslogtreecommitdiffstats
path: root/cc/layer.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 21:12:40 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 21:12:40 +0000
commitfbf77513101f73a974ad475b2bc4e2a192e2a77a (patch)
treedcb4e85c8b9a3d0ee10c3841285a3dd3439aeacf /cc/layer.h
parent2f64f3557446132f80eae5046c57e53eedce1396 (diff)
downloadchromium_src-fbf77513101f73a974ad475b2bc4e2a192e2a77a.zip
chromium_src-fbf77513101f73a974ad475b2bc4e2a192e2a77a.tar.gz
chromium_src-fbf77513101f73a974ad475b2bc4e2a192e2a77a.tar.bz2
cc: Block the main thread for texture layers during impl-side painting
This patch adds an additional completion event to thread proxy. Right now, it checks for the lack of a pending tree after drawing (which is currently where tree activation is triggered). R=nduca@chromium.org BUG=164993 Review URL: https://chromiumcodereview.appspot.com/11710004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer.h')
-rw-r--r--cc/layer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/layer.h b/cc/layer.h
index 5f61d14..a510ab6 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -286,6 +286,8 @@ public:
// compatible with the main thread running freely, such as a double-buffered
// canvas that doesn't want to be triple-buffered across all three trees.
virtual bool blocksPendingCommit() const;
+ // Returns true if anything in this tree blocksPendingCommit.
+ bool blocksPendingCommitRecursive() const;
virtual bool canClipSelf() const;