Bug 1410209, part 4 - Add names to some IPC runnables. r=kanru

This patch requires that each instance of IPC's RunnableFunction is
passed in a name, like the non-IPC RunnableFunction.

MozReview-Commit-ID: Atu1W3Rl66S
This commit is contained in:
Andrew McCreight
2017-10-27 13:39:28 -07:00
parent c1fd2ee4cc
commit b1354b9fe7
15 changed files with 45 additions and 24 deletions

View File

@@ -338,13 +338,15 @@ DeallocateTextureClient(TextureDeallocParams params)
bool done = false;
ReentrantMonitor barrier("DeallocateTextureClient");
ReentrantMonitorAutoEnter autoMon(barrier);
ipdlMsgLoop->PostTask(NewRunnableFunction(DeallocateTextureClientSyncProxy,
ipdlMsgLoop->PostTask(NewRunnableFunction("DeallocateTextureClientSyncProxyRunnable",
DeallocateTextureClientSyncProxy,
params, &barrier, &done));
while (!done) {
barrier.Wait();
}
} else {
ipdlMsgLoop->PostTask(NewRunnableFunction(DeallocateTextureClient,
ipdlMsgLoop->PostTask(NewRunnableFunction("DeallocateTextureClientRunnable",
DeallocateTextureClient,
params));
}
// The work has been forwarded to the IPDL thread, we are done.
@@ -840,7 +842,8 @@ void CancelTextureClientRecycle(uint64_t aTextureId, LayersIPCChannel* aAllocato
if (MessageLoop::current() == msgLoop) {
aAllocator->CancelWaitForRecycle(aTextureId);
} else {
msgLoop->PostTask(NewRunnableFunction(CancelTextureClientRecycle,
msgLoop->PostTask(NewRunnableFunction("CancelTextureClientRecycleRunnable",
CancelTextureClientRecycle,
aTextureId, aAllocator));
}
}