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

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: Remove visibility updates. 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
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..68ea7561c224ff86cb720174b029651e608f4091 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_;
}
+ bool video_needs_begin_frames() const { return video_needs_begin_frames_; }
brianderson 2015/04/16 01:42:23 Accesser below setter for consistency?
sunnyps 2015/04/16 20:56:11 Done.
+ void SetVideoNeedsBeginFrames(bool 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_;

Powered by Google App Engine
This is Rietveld 408576698