Lines 440-449
void CompositorFrameReportingController::SetThreadAffectsSmoothness(
Link Here
|
440 |
} |
440 |
} |
441 |
|
441 |
|
442 |
// keep the history for the last 3 seconds. |
442 |
// keep the history for the last 3 seconds. |
443 |
auto expired_smooth_thread = smooth_thread_history_.lower_bound( |
443 |
if (!smooth_thread_history_.empty()) { |
444 |
Now() - base::TimeDelta::FromSeconds(3))--; |
444 |
auto expired_smooth_thread = smooth_thread_history_.lower_bound( |
445 |
smooth_thread_history_.erase(smooth_thread_history_.begin(), |
445 |
Now() - base::TimeDelta::FromSeconds(3))--; |
446 |
expired_smooth_thread); |
446 |
smooth_thread_history_.erase(smooth_thread_history_.begin(), |
|
|
447 |
expired_smooth_thread); |
448 |
} |
447 |
|
449 |
|
448 |
// Only trackes the history if there is a change in smooth_thread_ |
450 |
// Only trackes the history if there is a change in smooth_thread_ |
449 |
if (current_smooth_thread != GetSmoothThread()) { |
451 |
if (current_smooth_thread != GetSmoothThread()) { |