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

Unified Diff: cc/trees/thread_proxy.cc

Issue 1039533002: cc: Add support for sending BeginFrames for video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@misc_video_refactoring
Patch Set: Fix comment. Created 5 years, 8 months 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/trees/thread_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index beaf92f50b474d3491752d578936d817ddb380a6..db4091cbc0724efc2e305a5d7832a4f7b2425b31 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -401,6 +401,15 @@ void ThreadProxy::SetNeedsCommitOnImplThread() {
impl().scheduler->SetNeedsCommit();
}
+void ThreadProxy::SetVideoNeedsBeginFrames(bool needs_begin_frames) {
+ TRACE_EVENT1("cc", "ThreadProxy::SetVideoNeedsBeginFrames",
+ "needs_begin_frames", needs_begin_frames);
+ DCHECK(IsImplThread());
+ // In tests the layer tree is destroyed after the scheduler is.
+ if (impl().scheduler)
+ impl().scheduler->SetVideoNeedsBeginFrames(needs_begin_frames);
+}
+
void ThreadProxy::PostAnimationEventsToMainThreadOnImplThread(
scoped_ptr<AnimationEventsVector> events) {
TRACE_EVENT0("cc",
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698