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

Unified Diff: Source/core/workers/WorkerMessagingProxy.cpp

Issue 899923004: Add task location information to WorkerThread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 5 years, 10 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 | « Source/core/workers/WorkerInspectorProxy.cpp ('k') | Source/core/workers/WorkerThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerMessagingProxy.cpp
diff --git a/Source/core/workers/WorkerMessagingProxy.cpp b/Source/core/workers/WorkerMessagingProxy.cpp
index 6fa68d0cd6e9f8533ef9f7cc636c69a7856d794a..a1e4abde82d0b099d1efbdcad6a0aac35dcb0884 100644
--- a/Source/core/workers/WorkerMessagingProxy.cpp
+++ b/Source/core/workers/WorkerMessagingProxy.cpp
@@ -147,7 +147,7 @@ void WorkerMessagingProxy::postMessageToWorkerGlobalScope(PassRefPtr<SerializedS
if (m_workerThread) {
++m_unconfirmedMessageCount;
- m_workerThread->postTask(MessageWorkerGlobalScopeTask::create(message, channels));
+ m_workerThread->postTask(FROM_HERE, MessageWorkerGlobalScopeTask::create(message, channels));
} else
m_queuedEarlyTasks.append(MessageWorkerGlobalScopeTask::create(message, channels));
}
@@ -158,7 +158,7 @@ bool WorkerMessagingProxy::postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionConte
return false;
ASSERT(m_workerThread);
- m_workerThread->postTask(task);
+ m_workerThread->postTask(FROM_HERE, task);
return true;
}
@@ -209,7 +209,7 @@ void WorkerMessagingProxy::workerThreadCreated(PassRefPtr<DedicatedWorkerThread>
m_workerThreadHadPendingActivity = true; // Worker initialization means a pending activity.
for (auto& earlyTasks : m_queuedEarlyTasks)
- m_workerThread->postTask(earlyTasks.release());
+ m_workerThread->postTask(FROM_HERE, earlyTasks.release());
m_queuedEarlyTasks.clear();
}
« no previous file with comments | « Source/core/workers/WorkerInspectorProxy.cpp ('k') | Source/core/workers/WorkerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698