Lines Matching refs:scheduler
5 #include "cc/scheduler/scheduler.h"
14 #include "cc/scheduler/delay_based_time_source.h"
19 Scheduler::SyntheticBeginFrameSource::SyntheticBeginFrameSource(
20 Scheduler* scheduler,
22 : scheduler_(scheduler) {
33 Scheduler::SyntheticBeginFrameSource::~SyntheticBeginFrameSource() {
36 void Scheduler::SyntheticBeginFrameSource::CommitVSyncParameters(
42 void Scheduler::SyntheticBeginFrameSource::SetNeedsBeginFrame(
54 bool Scheduler::SyntheticBeginFrameSource::IsActive() const {
58 void Scheduler::SyntheticBeginFrameSource::OnTimerTick() {
64 scoped_ptr<base::Value> Scheduler::SyntheticBeginFrameSource::AsValue() const {
69 Scheduler::SyntheticBeginFrameSource::CreateSyntheticBeginFrameArgs(
76 Scheduler::Scheduler(
93 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("cc.debug.scheduler"),
94 "Scheduler::Scheduler",
104 base::Bind(&Scheduler::BeginRetroFrame, weak_factory_.GetWeakPtr());
106 base::Bind(&Scheduler::BeginUnthrottledFrame, weak_factory_.GetWeakPtr());
108 &Scheduler::OnBeginImplFrameDeadline, weak_factory_.GetWeakPtr());
110 &Scheduler::PollForAnticipatedDrawTriggers, weak_factory_.GetWeakPtr());
112 &Scheduler::PollToAdvanceCommitState, weak_factory_.GetWeakPtr());
119 Scheduler::~Scheduler() {
126 void Scheduler::SetupSyntheticBeginFrames() {
132 void Scheduler::CommitVSyncParameters(base::TimeTicks timebase,
142 void Scheduler::SetEstimatedParentDrawTime(base::TimeDelta draw_time) {
147 void Scheduler::SetCanStart() {
152 void Scheduler::SetVisible(bool visible) {
157 void Scheduler::SetCanDraw(bool can_draw) {
162 void Scheduler::NotifyReadyToActivate() {
167 void Scheduler::SetNeedsCommit() {
172 void Scheduler::SetNeedsRedraw() {
177 void Scheduler::SetNeedsAnimate() {
182 void Scheduler::SetNeedsManageTiles() {
188 void Scheduler::SetMaxSwapsPending(int max) {
192 void Scheduler::DidSwapBuffers() {
202 void Scheduler::SetSwapUsedIncompleteTile(bool used_incomplete_tile) {
207 void Scheduler::DidSwapBuffersComplete() {
212 void Scheduler::SetSmoothnessTakesPriority(bool smoothness_takes_priority) {
217 void Scheduler::NotifyReadyToCommit() {
218 TRACE_EVENT0("cc", "Scheduler::NotifyReadyToCommit");
223 void Scheduler::BeginMainFrameAborted(bool did_handle) {
224 TRACE_EVENT0("cc", "Scheduler::BeginMainFrameAborted");
229 void Scheduler::DidManageTiles() {
233 void Scheduler::DidLoseOutputSurface() {
234 TRACE_EVENT0("cc", "Scheduler::DidLoseOutputSurface");
245 void Scheduler::DidCreateAndInitializeOutputSurface() {
246 TRACE_EVENT0("cc", "Scheduler::DidCreateAndInitializeOutputSurface");
253 void Scheduler::NotifyBeginMainFrameStarted() {
254 TRACE_EVENT0("cc", "Scheduler::NotifyBeginMainFrameStarted");
258 base::TimeTicks Scheduler::AnticipatedDrawTime() const {
270 base::TimeTicks Scheduler::LastBeginImplFrameTime() {
274 void Scheduler::SetupNextBeginFrameIfNeeded() {
287 void Scheduler::SetupNextBeginFrameWhenVSyncThrottlingEnabled(
314 void Scheduler::SetupNextBeginFrameWhenVSyncThrottlingDisabled(
334 void Scheduler::BeginUnthrottledFrame() {
350 void Scheduler::SetupPollingMechanisms(bool needs_begin_frame) {
399 // If the scheduler is busy, we queue the BeginFrame to be handled later as
401 void Scheduler::BeginFrame(const BeginFrameArgs& args) {
402 TRACE_EVENT1("cc", "Scheduler::BeginFrame", "args", ToTrace(args));
422 "cc", "Scheduler::BeginFrame deferred", TRACE_EVENT_SCOPE_THREAD);
430 // the scheduler was in the middle of processing a previous BeginFrame.
431 void Scheduler::BeginRetroFrame() {
432 TRACE_EVENT0("cc", "Scheduler::BeginRetroFrame");
455 "Scheduler::BeginRetroFrame discarding",
464 "Scheduler::BeginRetroFrames all expired",
473 // BeginFrame arriving via the normal mechanism. Scheduler::BeginFrame
476 void Scheduler::PostBeginRetroFrameIfNeeded() {
498 void Scheduler::BeginImplFrame(const BeginFrameArgs& args) {
499 TRACE_EVENT1("cc", "Scheduler::BeginImplFrame", "args", ToTrace(args));
527 base::TimeTicks Scheduler::AdjustedBeginImplFrameDeadline(
552 void Scheduler::ScheduleBeginImplFrameDeadline(base::TimeTicks deadline) {
572 void Scheduler::OnBeginImplFrameDeadline() {
573 TRACE_EVENT0("cc", "Scheduler::OnBeginImplFrameDeadline");
591 void Scheduler::PollForAnticipatedDrawTriggers() {
592 TRACE_EVENT0("cc", "Scheduler::PollForAnticipatedDrawTriggers");
599 void Scheduler::PollToAdvanceCommitState() {
600 TRACE_EVENT0("cc", "Scheduler::PollToAdvanceCommitState");
605 bool Scheduler::IsBeginMainFrameSent() const {
610 void Scheduler::DrawAndSwapIfPossible() {
615 void Scheduler::ProcessScheduledActions() {
626 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("cc.debug.scheduler"),
679 bool Scheduler::WillDrawIfNeeded() const {
683 scoped_ptr<base::Value> Scheduler::AsValue() const {
730 bool Scheduler::CanCommitAndActivateBeforeDeadline() const {
739 TRACE_DISABLED_BY_DEFAULT("cc.debug.scheduler"),
749 bool Scheduler::IsBeginMainFrameSentOrStarted() const {