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

Unified Diff: cc/scheduler/scheduler.h

Issue 723713003: cc: Add SetChildrenNeedBeginFrames() & SendBeginFramesToChildren() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 1 month 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 | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index 2a924f1216bd874866471a20f5ee1223a08efeab..ef52ccf9f7b780a74ebe2b2119d7da451b28110b 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -48,6 +48,7 @@ class SchedulerClient {
virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0;
virtual base::TimeDelta CommitToActivateDurationEstimate() = 0;
virtual void DidBeginImplFrameDeadline() = 0;
+ virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) = 0;
protected:
virtual ~SchedulerClient() {}
@@ -93,6 +94,9 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn,
~Scheduler() override;
+ // BeginFrameObserverMixin
+ bool OnBeginFrameMixInDelegate(const BeginFrameArgs& args) override;
+
// base::PowerObserver method.
void OnPowerStateChange(bool on_battery_power) override;
@@ -164,8 +168,7 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn,
state_machine_.SetContinuousPainting(continuous_painting);
}
- // BeginFrameObserverMixin
- bool OnBeginFrameMixInDelegate(const BeginFrameArgs& args) override;
+ void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
protected:
Scheduler(SchedulerClient* client,
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698