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

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

Issue 2273703002: Force events to be non blocking if main thread is unresponsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 4 years, 1 month 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 81714ddd3cd987474b83acb6512f255cff6355e0..a37159609e14808ad6db74ed21130ea62e624db8 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
@@ -19,13 +19,18 @@ class BLINK_PLATFORM_EXPORT TaskTimeObserver {
TaskTimeObserver() {}
virtual ~TaskTimeObserver() {}
+ // Callback to be called when task is started.
+ // |task_queue| - TaskQueue on which this task was run,
+ // |start_time| - time in seconds when task started to run,
+ virtual void ReportTaskStartTime(double start_time) {}
+
// 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;
+ virtual void ReportTaskEndTime(TaskQueue* task_queue,
+ double start_time,
+ double end_time) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver);

Powered by Google App Engine
This is Rietveld 408576698