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

Unified Diff: third_party/WebKit/public/platform/scheduler/base/task_time_observer.h

Issue 2258133002: [scheduler] Implement time-based cpu throttling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 3 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 | « third_party/WebKit/public/platform/scheduler/base/task_queue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/scheduler/base/task_time_observer.h
diff --git a/third_party/WebKit/public/platform/scheduler/base/task_time_observer.h b/third_party/WebKit/public/platform/scheduler/base/task_time_observer.h
index 5ea6fec704f0373144b82b94abc3d2f9721e9ff7..81714ddd3cd987474b83acb6512f255cff6355e0 100644
--- a/third_party/WebKit/public/platform/scheduler/base/task_time_observer.h
+++ b/third_party/WebKit/public/platform/scheduler/base/task_time_observer.h
@@ -11,12 +11,21 @@
namespace blink {
namespace scheduler {
+class TaskQueue;
+
+// TaskTimeObserver provides an API for observing completion of renderer tasks.
class BLINK_PLATFORM_EXPORT TaskTimeObserver {
public:
TaskTimeObserver() {}
virtual ~TaskTimeObserver() {}
- virtual void ReportTaskTime(double startTime, double endTime) = 0;
+ // Callback to be called when task is completed.
+ // |task_queue| - TaskQueue on which this task was run,
+ // |start_time| - time in seconds when task started to run,
+ // |end_time| - time in seconds when task was completed.
+ virtual void ReportTaskTime(TaskQueue* task_queue,
+ double start_time,
+ double end_time) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver);
« no previous file with comments | « third_party/WebKit/public/platform/scheduler/base/task_queue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698