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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h

Issue 2266883002: scheduler: Reset gesture state at start of a mouse drag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo fix Created 4 years, 4 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 | « no previous file | third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
index 77705b4627e7dc60e28fb7bebe752781e99bd79e..0e6a3d500605d05b30529d680fe9a5620252f060 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
@@ -265,13 +265,6 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
// defined by RAILS.
static const int kRailsResponseTimeMillis = 50;
- // For the purposes of deciding whether or not it's safe to turn timers and
- // loading tasks on only in idle periods, we regard the system as being as
- // being "idle period" starved if there hasn't been an idle period in the last
- // 10 seconds. This was chosen to be long enough to cover most anticipated
- // user gestures.
- static const int kIdlePeriodStarvationThresholdMillis = 10000;
-
// The amount of time to wait before suspending shared timers after the
// renderer has been backgrounded. This is used only if background suspension
// of shared timers is enabled.
@@ -320,10 +313,6 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
void UpdateForInputEventOnCompositorThread(WebInputEvent::Type type,
InputEventState input_event_state);
- // Returns true if there has been at least one idle period in the last
- // |kIdlePeriodStarvationThresholdMillis|.
- bool HadAnIdlePeriodRecently(base::TimeTicks now) const;
-
// Helpers for safely suspending/resuming the timer queue after a
// background/foreground signal.
void SuspendTimerQueueWhenBackgrounded();
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698