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

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

Issue 2572893002: [Reland] Dont post delayed DoWork for disabled queues. (Closed)
Patch Set: Fix compile Created 3 years, 10 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: 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 09e3f70ade30e3096f9e31c8458d471eddf3dd0a..c2b828a8bddf288660b917a7d94825b0122c0491 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
@@ -111,12 +111,18 @@ class BLINK_PLATFORM_EXPORT TimeDomain {
virtual void OnRegisterWithTaskQueueManager(
TaskQueueManager* task_queue_manager) = 0;
- // The implementaion will secedule task processing to run with |delay| with
- // respect to the TimeDomain's time source. Always called on the main thread.
+ // The implementation will schedule task processing to run at time |run_time|
+ // within the TimeDomain's time line. Only called from 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 RequestWakeup(base::TimeTicks now, base::TimeDelta delay) = 0;
+ virtual void RequestWakeupAt(base::TimeTicks 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;
// For implementation specific tracing.
virtual void AsValueIntoInternal(

Powered by Google App Engine
This is Rietveld 408576698