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

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

Issue 2646933002: Move PerformanceBase to TaskRunnerTimer. (Closed)
Patch Set: unneeded includes 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
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()),
+ m_executionContext(context) {}
DEFINE_TRACE(WorkerPerformance) {
visitor->trace(m_executionContext);
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698