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

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

Issue 2798563003: [scheduler] Add TaskQueue::Observer (Closed)
Patch Set: add todo for test timings & wake_up -> wake-up in comments Created 3 years, 8 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/renderer/throttled_time_domain.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h b/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h
index 4faaf5b140b1c6a9161f364acc15a5b79f0be02c..d26f8c18a9a26854ca1b21665d90e6e8a489be18 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h
@@ -12,20 +12,19 @@ namespace blink {
namespace scheduler {
// A time domain for throttled tasks. behaves like an RealTimeDomain except it
-// relies on the owner (TaskQueueThrottler) to schedule wakeups.
+// relies on the owner (TaskQueueThrottler) to schedule wake_ups.
class BLINK_PLATFORM_EXPORT ThrottledTimeDomain : public RealTimeDomain {
public:
- ThrottledTimeDomain(TimeDomain::Observer* observer,
- const char* tracing_category);
+ ThrottledTimeDomain(const char* tracing_category);
~ThrottledTimeDomain() override;
// TimeDomain implementation:
const char* GetName() const override;
- void RequestWakeupAt(base::TimeTicks now, base::TimeTicks run_time) override;
- void CancelWakeupAt(base::TimeTicks run_time) override;
+ void RequestWakeUpAt(base::TimeTicks now, base::TimeTicks run_time) override;
+ void CancelWakeUpAt(base::TimeTicks run_time) override;
base::Optional<base::TimeDelta> DelayTillNextTask(LazyNow* lazy_now) override;
- using TimeDomain::WakeupReadyDelayedQueues;
+ using TimeDomain::WakeUpReadyDelayedQueues;
private:
DISALLOW_COPY_AND_ASSIGN(ThrottledTimeDomain);

Powered by Google App Engine
This is Rietveld 408576698