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

Unified Diff: cc/scheduler/scheduler.cc

Issue 2323123002: Make disable vsync run the renderer independently (Closed)
Patch Set: Created 4 years, 3 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.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index d603086725b002350f2a8733dfd6743129563fc9..35853336893014817b3480e3b57bdf8a3c43659e 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -716,8 +716,6 @@ Scheduler::AsValue() const {
state->EndDictionary();
state->BeginDictionary("scheduler_state");
- state->SetBoolean("throttle_frame_production_",
- settings_.throttle_frame_production);
state->SetDouble("estimated_parent_draw_time_ms",
estimated_parent_draw_time_.InMillisecondsF());
state->SetBoolean("observing_begin_frame_source",
@@ -777,7 +775,7 @@ bool Scheduler::ShouldRecoverImplLatency(
// Disable impl thread latency recovery when using the unthrottled
// begin frame source since we will always get a BeginFrame before
// the swap ack and our heuristics below will not work.
- if (!settings_.throttle_frame_production)
+ if (begin_frame_source_ && !begin_frame_source_->IsThrottled())
return false;
// If we are swap throttled at the BeginFrame, that means the impl thread is

Powered by Google App Engine
This is Rietveld 408576698