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

Unified Diff: cc/scheduler/scheduler.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/scheduler/scheduler.h ('k') | cc/scheduler/scheduler_state_machine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index c37250e85cefe7592f5b41745ff9d0b52a5ffd57..2288169ecde077c80dc44fe911097a87924f1869 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -401,6 +401,11 @@ void Scheduler::SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) {
vsync_observer_->OnUpdateVSyncParameters(last_vsync_timebase_, interval);
}
+void Scheduler::SetVideoNeedsBeginFrames(bool video_needs_begin_frames) {
+ state_machine_.SetVideoNeedsBeginFrames(video_needs_begin_frames);
+ ProcessScheduledActions();
+}
+
void Scheduler::OnDrawForOutputSurface() {
DCHECK(settings_.using_synchronous_renderer_compositor);
DCHECK_EQ(state_machine_.begin_impl_frame_state(),
« no previous file with comments | « cc/scheduler/scheduler.h ('k') | cc/scheduler/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698