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

Unified Diff: cc/scheduler/scheduler_state_machine.h

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.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index 7d6810b3e8b1a9f9405579001c407042a855513a..cf29ca9b6a53ec89a43c1b20e905e9c4792dff8f 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -254,9 +254,13 @@ class CC_EXPORT SchedulerStateMachine {
return children_need_begin_frames_;
}
+ void SetVideoNeedsBeginFrames(bool video_needs_begin_frames);
+ bool video_needs_begin_frames() const { return video_needs_begin_frames_; }
+
protected:
bool BeginFrameRequiredForAction() const;
bool BeginFrameRequiredForChildren() const;
+ bool BeginFrameNeededForVideo() const;
bool ProactiveBeginFrameWanted() const;
bool ShouldTriggerBeginImplFrameDeadlineImmediately() const;
@@ -330,6 +334,7 @@ class CC_EXPORT SchedulerStateMachine {
bool continuous_painting_;
bool children_need_begin_frames_;
bool defer_commits_;
+ bool video_needs_begin_frames_;
bool last_commit_had_no_updates_;
bool wait_for_active_tree_ready_to_draw_;
bool did_request_swap_in_last_frame_;
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698