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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/time_domain.h

Issue 2583333002: Revert of Dont post delayed DoWork for disabled queues. (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/platform/scheduler/base/time_domain.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/time_domain.h b/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
index 67b23aca388d24019ea7c4b658d4597c83d8ee3e..4947fd5e0c529a79d0af9cf5a78c04b595d6f6f1 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
@@ -95,10 +95,7 @@
// registered wakeup for |queue|.
void ScheduleDelayedWork(internal::TaskQueueImpl* queue,
base::TimeTicks delayed_run_time,
- LazyNow* lazy_now);
-
- // Cancels any delayed work requested for |queue|.
- void CancelDelayedWork(internal::TaskQueueImpl* queue);
+ base::TimeTicks now);
// Registers the |queue|.
void RegisterQueue(internal::TaskQueueImpl* queue);
@@ -114,17 +111,12 @@
virtual void OnRegisterWithTaskQueueManager(
TaskQueueManager* task_queue_manager) = 0;
- // The implementation will schedule task processing to run at time |run_time|
- // within the TimeDomain's time line. Only called from the main thread.
+ // The implementaion will secedule task processing to run with |delay| with
+ // respect to the TimeDomain's time source. Always called on the main thread.
// NOTE this is only called by ScheduleDelayedWork if the scheduled runtime
// is sooner than any previously sheduled work or if there is no other
// scheduled work.
- virtual void RequestWakeupAt(LazyNow* lazy_now, base::TimeTicks run_time) = 0;
-
- // The implementation will cancel a wake up previously requested by
- // RequestWakeupAt. It's expected this will be a NOP for most virtual time
- // domains.
- virtual void CancelWakeupAt(base::TimeTicks run_time) = 0;
+ virtual void RequestWakeup(base::TimeTicks now, base::TimeDelta delay) = 0;
// For implementation specific tracing.
virtual void AsValueIntoInternal(

Powered by Google App Engine
This is Rietveld 408576698