Chromium Code Reviews| 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); |