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

Unified Diff: cc/trees/single_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/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 28688fca443bf48d70c30663191c3b08dece26fd..c25ed4d1dbb6d5f48337e29594a8044f09eab369 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -458,6 +458,14 @@ void SingleThreadProxy::SetNeedsCommitOnImplThread() {
scheduler_on_impl_thread_->SetNeedsCommit();
}
+void SingleThreadProxy::SetVideoNeedsBeginFrames(bool needs_begin_frames) {
+ TRACE_EVENT1("cc", "SingleThreadProxy::SetVideoNeedsBeginFrames",
+ "needs_begin_frames", needs_begin_frames);
+ // In tests the layer tree is destroyed after the scheduler is.
+ if (scheduler_on_impl_thread_)
+ scheduler_on_impl_thread_->SetVideoNeedsBeginFrames(needs_begin_frames);
+}
+
void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread(
scoped_ptr<AnimationEventsVector> events) {
TRACE_EVENT0(
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698