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

Unified Diff: cc/scheduler/scheduler.cc

Issue 1194743002: cc: Remove ResourceUpdateQueue and ResourceUpdateController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resourcequeue: header Created 5 years, 6 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_unittest.cc » ('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 c6bbc408443e42ff2e733dfb866fe23a45a2b9b8..20559063f151076fc439af9ffaf72e5cfc79bb87 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -274,19 +274,6 @@ void Scheduler::NotifyBeginMainFrameStarted() {
state_machine_.NotifyBeginMainFrameStarted();
}
-base::TimeTicks Scheduler::AnticipatedDrawTime() const {
- if (!frame_source_->NeedsBeginFrames() ||
- begin_impl_frame_tracker_.DangerousMethodHasFinished())
- return base::TimeTicks();
-
- base::TimeTicks now = Now();
- BeginFrameArgs args = begin_impl_frame_tracker_.Current();
- base::TimeTicks timebase = std::max(args.frame_time, args.deadline);
- int64 intervals =
- 1 + ((now - timebase) / begin_impl_frame_tracker_.Interval());
- return timebase + (begin_impl_frame_tracker_.Interval() * intervals);
-}
-
base::TimeTicks Scheduler::LastBeginImplFrameTime() {
return begin_impl_frame_tracker_.Current().frame_time;
}
@@ -736,8 +723,6 @@ void Scheduler::ProcessScheduledActions() {
SetupPollingMechanisms();
- client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime());
-
ScheduleBeginImplFrameDeadlineIfNeeded();
SetupNextBeginFrameIfNeeded();
@@ -768,8 +753,6 @@ void Scheduler::AsValueInto(base::trace_event::TracedValue* state) const {
}
state->BeginDictionary("scheduler_state");
- state->SetDouble("time_until_anticipated_draw_time_ms",
- (AnticipatedDrawTime() - Now()).InMillisecondsF());
state->SetDouble("estimated_parent_draw_time_ms",
estimated_parent_draw_time_.InMillisecondsF());
state->SetBoolean("last_set_needs_begin_frame_",
« no previous file with comments | « cc/scheduler/scheduler.h ('k') | cc/scheduler/scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698