| Index: third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| index bb5bb46c7708830080177d81d4d618f2c919daf0..a9044aacc5ef22c15338c21f7be405be534c2989 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| @@ -122,7 +122,7 @@ void WorkerThread::performTask(PassOwnPtr<ExecutionContextTask> task, bool isIns
|
| InspectorInstrumentation::didPerformExecutionContextTask(globalScope);
|
| }
|
|
|
| -PassOwnPtr<Closure> WorkerThread::createWorkerThreadTask(PassOwnPtr<ExecutionContextTask> task, bool isInstrumented)
|
| +PassOwnPtr<CrossThreadClosure> WorkerThread::createWorkerThreadTask(PassOwnPtr<ExecutionContextTask> task, bool isInstrumented)
|
| {
|
| if (isInstrumented)
|
| isInstrumented = !task->taskNameForInstrumentation().isEmpty();
|
| @@ -137,7 +137,7 @@ PassOwnPtr<Closure> WorkerThread::createWorkerThreadTask(PassOwnPtr<ExecutionCon
|
| class WorkerThread::DebuggerTaskQueue {
|
| WTF_MAKE_NONCOPYABLE(DebuggerTaskQueue);
|
| public:
|
| - using Task = WTF::Closure;
|
| + using Task = WTF::CrossThreadClosure;
|
| using Result = WorkerThread::TaskQueueResult;
|
|
|
| DebuggerTaskQueue() { }
|
| @@ -494,7 +494,7 @@ void WorkerThread::terminateV8Execution()
|
| m_isolate->TerminateExecution();
|
| }
|
|
|
| -void WorkerThread::appendDebuggerTask(PassOwnPtr<Closure> task)
|
| +void WorkerThread::appendDebuggerTask(PassOwnPtr<CrossThreadClosure> task)
|
| {
|
| {
|
| MutexLocker lock(m_threadStateMutex);
|
| @@ -509,7 +509,7 @@ WorkerThread::TaskQueueResult WorkerThread::runDebuggerTask(WaitMode waitMode)
|
| ASSERT(isCurrentThread());
|
| TaskQueueResult result;
|
| double absoluteTime = DebuggerTaskQueue::infiniteTime();
|
| - OwnPtr<Closure> task;
|
| + OwnPtr<CrossThreadClosure> task;
|
| {
|
| if (waitMode == DontWaitForTask)
|
| absoluteTime = 0.0;
|
|
|