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

Unified Diff: third_party/WebKit/Source/core/timing/WorkerPerformance.cpp

Issue 2646933002: Move PerformanceBase to TaskRunnerTimer. (Closed)
Patch Set: Created 3 years, 11 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/Source/core/timing/WorkerPerformance.cpp
diff --git a/third_party/WebKit/Source/core/timing/WorkerPerformance.cpp b/third_party/WebKit/Source/core/timing/WorkerPerformance.cpp
index d729e7eb95a41a1b77f9b644807907950dc827af..6634b1a34c5f34c8e1a786502ccd6fc402969e58 100644
--- a/third_party/WebKit/Source/core/timing/WorkerPerformance.cpp
+++ b/third_party/WebKit/Source/core/timing/WorkerPerformance.cpp
@@ -33,12 +33,18 @@
#include "core/timing/MemoryInfo.h"
#include "core/workers/DedicatedWorkerGlobalScope.h"
#include "core/workers/WorkerGlobalScope.h"
+#include "public/platform/Platform.h"
+#include "public/platform/WebScheduler.h"
+#include "public/platform/WebThread.h"
#include "wtf/CurrentTime.h"
namespace blink {
WorkerPerformance::WorkerPerformance(WorkerGlobalScope* context)
- : PerformanceBase(context->timeOrigin()), m_executionContext(context) {}
+ : PerformanceBase(
+ context->timeOrigin(),
+ Platform::current()->currentThread()->scheduler()->timerTaskRunner()),
haraken 2017/01/20 02:30:25 Yeah, we don't yet have a good concept of TaskType
+ m_executionContext(context) {}
DEFINE_TRACE(WorkerPerformance) {
visitor->trace(m_executionContext);

Powered by Google App Engine
This is Rietveld 408576698