Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3261)

Unified Diff: cc/thread_proxy.h

Issue 11710004: cc: Block the main thread for texture layers during impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/texture_layer.cc ('k') | cc/thread_proxy.cc » ('j') | cc/thread_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.h
diff --git a/cc/thread_proxy.h b/cc/thread_proxy.h
index 5320ee2accd79da56aca971ed7ce3838c101c8d8..cd7eaecbbc43a99f594bd67203f24cf7e539046c 100644
--- a/cc/thread_proxy.h
+++ b/cc/thread_proxy.h
@@ -134,6 +134,8 @@ private:
void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*);
void setNeedsForcedCommitOnImplThread();
void commitPendingOnImplThreadForTesting(CommitPendingRequest* request);
+ void blockUntilPendingActivationIfNeeded();
+ void blockUntilPendingActivationOnImplThread(CompletionEvent*);
// Accessed on main thread only.
bool m_animateRequested; // Set only when setNeedsAnimate is called.
@@ -176,6 +178,9 @@ private:
// Set when the main thread is waiting on layers to be drawn.
CompletionEvent* m_textureAcquisitionCompletionEventOnImplThread;
+ // Set when the main thread is waiting for pending tree activation.
+ CompletionEvent* m_pendingTreeActivationEventOnImplThread;
+
scoped_ptr<ResourceUpdateController> m_currentResourceUpdateControllerOnImplThread;
// Set when the next draw should post didCommitAndDrawFrame to the main thread.
« no previous file with comments | « cc/texture_layer.cc ('k') | cc/thread_proxy.cc » ('j') | cc/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698