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

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: Changed similarity 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
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..cdb24f07b71df96fa27a59c41fb72917383d7092 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,16 @@
namespace blink {
namespace scheduler {
+class TaskQueue;
+
class BLINK_PLATFORM_EXPORT TaskTimeObserver {
public:
TaskTimeObserver() {}
virtual ~TaskTimeObserver() {}
- virtual void ReportTaskTime(double startTime, double endTime) = 0;
+ virtual void ReportTaskTime(TaskQueue* task_queue,
+ base::TimeTicks start_time,
+ base::TimeTicks end_time) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver);

Powered by Google App Engine
This is Rietveld 408576698