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

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: Use double instead of base::TimeTicks 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..ee1b964c06b6a1687ed5f563cca12057d56e8223 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 {
alex clarke (OOO till 29th) 2016/09/12 17:45:27 We're trying to add some top level comments to sch
altimin 2016/09/14 11:23:19 Done.
public:
TaskTimeObserver() {}
virtual ~TaskTimeObserver() {}
- virtual void ReportTaskTime(double startTime, double endTime) = 0;
+ virtual void ReportTaskTime(TaskQueue* task_queue,
alex clarke (OOO till 29th) 2016/09/12 17:45:27 Please add a comment explaining what the members a
altimin 2016/09/14 11:23:19 Done.
+ double start_time,
+ double end_time) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver);

Powered by Google App Engine
This is Rietveld 408576698