Backed out changeset 9846de3bd954 (bug 1372405)

This commit is contained in:
Carsten "Tomcat" Book
2017-06-20 08:27:02 +02:00
parent 0640fe35ce
commit bbe9441993
613 changed files with 3568 additions and 6338 deletions

View File

@@ -234,11 +234,9 @@ static void DestroyTextureData(TextureData* aTextureData, LayersIPCChannel* aAll
if (aMainThreadOnly && !NS_IsMainThread()) {
RefPtr<LayersIPCChannel> allocatorRef = aAllocator;
NS_DispatchToMainThread(NS_NewRunnableFunction(
"layers::DestroyTextureData",
[aTextureData, allocatorRef, aDeallocate]() -> void {
DestroyTextureData(aTextureData, allocatorRef, aDeallocate, true);
}));
NS_DispatchToMainThread(NS_NewRunnableFunction([aTextureData, allocatorRef, aDeallocate]() -> void {
DestroyTextureData(aTextureData, allocatorRef, aDeallocate, true);
}));
return;
}