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

Unified Diff: third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp

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: Add tests, fix bugs. 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/Source/core/frame/PerformanceMonitor.cpp
diff --git a/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp b/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
index b4949cedf9d84b798ab425346c4a523a3b09e2b6..9bca68aa99d0bf0bea8c8e562c092e29899899b9 100644
--- a/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
+++ b/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
@@ -225,9 +225,9 @@ void PerformanceMonitor::didProcessTask() {
}
}
-void PerformanceMonitor::ReportTaskTime(scheduler::TaskQueue*,
- double startTime,
- double endTime) {
+void PerformanceMonitor::ReportTaskEndTime(scheduler::TaskQueue*,
+ double startTime,
+ double endTime) {
double taskTime = endTime - startTime;
if (!m_thresholds[kLongTask] || taskTime < m_thresholds[kLongTask])
return;

Powered by Google App Engine
This is Rietveld 408576698