| Index: Source/modules/compositorworker/CompositorWorkerManagerTest.cpp
|
| diff --git a/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp b/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp
|
| index 76ad7dbd774b7296c4ea41b087b16ac1bc75388e..5813f438e20a908d4a1c6832f6574f5661a5e380 100644
|
| --- a/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp
|
| +++ b/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp
|
| @@ -132,7 +132,7 @@ public:
|
| void checkWorkerCanExecuteScript(WorkerThread* worker)
|
| {
|
| OwnPtr<WebWaitableEvent> waitEvent = adoptPtr(Platform::current()->createWaitableEvent());
|
| - worker->backingThread().platformThread().postTask(FROM_HERE, threadSafeBind(&CompositorWorkerManagerTest::executeScriptInWorker, AllowCrossThreadAccess(this),
|
| + worker->backingThread().platformThread().defaultTaskRunner()->postTask(FROM_HERE, threadSafeBind(&CompositorWorkerManagerTest::executeScriptInWorker, AllowCrossThreadAccess(this),
|
| AllowCrossThreadAccess(worker), AllowCrossThreadAccess(waitEvent.get())));
|
| waitEvent->wait();
|
| }
|
| @@ -237,7 +237,7 @@ TEST_F(CompositorWorkerManagerTest, TerminateFirstAndCreateSecond)
|
|
|
| // Jump over to the worker's thread to verify that the Isolate is set up correctly and execute script.
|
| OwnPtr<WebWaitableEvent> checkEvent = adoptPtr(Platform::current()->createWaitableEvent());
|
| - secondThread->platformThread().postTask(FROM_HERE, threadSafeBind(&checkCurrentIsolate, AllowCrossThreadAccess(compositorWorker->isolate()), AllowCrossThreadAccess(checkEvent.get())));
|
| + secondThread->platformThread().defaultTaskRunner()->postTask(FROM_HERE, threadSafeBind(&checkCurrentIsolate, AllowCrossThreadAccess(compositorWorker->isolate()), AllowCrossThreadAccess(checkEvent.get())));
|
| waitForWaitableEventAfterIteratingCurrentLoop(checkEvent.get());
|
| checkWorkerCanExecuteScript(compositorWorker.get());
|
|
|
|
|