Change-Id: I8d8f796a03875ea4c6f2fc67541984a5dd240c84Franco PieriIs there any bug ID associated with this?
What is the purpose of this patch? To cleanup dead features? Could you please add a description of the purpose?
Sorry! I added more detail, along with the CL's corresponding bug.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// On Windows, we can rely on the low-res clock if we want the wakeup within
// kMinLowResolutionThresholdMs (16ms).
const TimeDelta leeway = GetLeewayForCurrentThread();
if (leeway > Milliseconds(Time::kMinLowResolutionThresholdMs)) {
TimeTicks aligned_run_time =
earliest_time.SnappedToNextTick(TimeTicks(), leeway);
return std::min(aligned_run_time, latest_time);
}Remove this since GetAlignWakeUpsEnabled() was always false.
// For some threads, there might be an override of the leeway, so check it
// first.Let's keep this comment
if (g_timer_slack.load(std::memory_order_relaxed) &&
!next_work_info.delayed_run_time.is_max() &&
delayed_work_leeway_ != next_work_info.leeway) {
if (!next_work_info.leeway.is_zero()) {
// Specify slack based on |next_work_info|.
CFRunLoopTimerSetTolerance(delayed_work_timer_.get(),
next_work_info.leeway.InSecondsF());
} else {
CFRunLoopTimerSetTolerance(delayed_work_timer_.get(), 0);
}
delayed_work_leeway_ = next_work_info.leeway;
}Remove this since GetAlignWakeUpsEnabled() was always false
if (g_timer_slack.load(std::memory_order_relaxed)) {
return earliest_time;
}Remove this since GetAlignWakeUpsEnabled() was always false.
This then makes MessagePumpKqueue::AdjustDelayedRunTime override unnecessary which can also be removed.
return base::FeatureList::IsEnabled(
features::kLowerHighResolutionTimerThreshold)
? base::Milliseconds(4)
: base::Milliseconds(32);Since GetAlignWakeUpsEnabled() was always false, this should just return base::Milliseconds(32);
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
// On Windows, we can rely on the low-res clock if we want the wakeup within
// kMinLowResolutionThresholdMs (16ms).
const TimeDelta leeway = GetLeewayForCurrentThread();
if (leeway > Milliseconds(Time::kMinLowResolutionThresholdMs)) {
TimeTicks aligned_run_time =
earliest_time.SnappedToNextTick(TimeTicks(), leeway);
return std::min(aligned_run_time, latest_time);
}Remove this since GetAlignWakeUpsEnabled() was always false.
Done
// For some threads, there might be an override of the leeway, so check it
// first.Let's keep this comment
Done
if (g_timer_slack.load(std::memory_order_relaxed) &&
!next_work_info.delayed_run_time.is_max() &&
delayed_work_leeway_ != next_work_info.leeway) {
if (!next_work_info.leeway.is_zero()) {
// Specify slack based on |next_work_info|.
CFRunLoopTimerSetTolerance(delayed_work_timer_.get(),
next_work_info.leeway.InSecondsF());
} else {
CFRunLoopTimerSetTolerance(delayed_work_timer_.get(), 0);
}
delayed_work_leeway_ = next_work_info.leeway;
}Remove this since GetAlignWakeUpsEnabled() was always false
Done
if (g_timer_slack.load(std::memory_order_relaxed)) {
return earliest_time;
}Remove this since GetAlignWakeUpsEnabled() was always false.
This then makes MessagePumpKqueue::AdjustDelayedRunTime override unnecessary which can also be removed.
Done
return base::FeatureList::IsEnabled(
features::kLowerHighResolutionTimerThreshold)
? base::Milliseconds(4)
: base::Milliseconds(32);Since GetAlignWakeUpsEnabled() was always false, this should just return base::Milliseconds(32);
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |