Bug 1349699 - Close GPU channel unconditionally (r=dvander)

MozReview-Commit-ID: 4Ge2ib9p1i
This commit is contained in:
Bill McCloskey 2017-04-06 16:56:46 -07:00
Родитель 85cf9b13c7
Коммит 4545dbd87f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -152,12 +152,12 @@ GPUProcessHost::Shutdown()
// unexpected. // unexpected.
mShutdownRequested = true; mShutdownRequested = true;
#ifdef NS_FREE_PERMANENT_DATA
// The channel might already be closed if we got here unexpectedly. // The channel might already be closed if we got here unexpectedly.
if (!mChannelClosed) { if (!mChannelClosed) {
mGPUChild->Close(); mGPUChild->Close();
} }
#else
#ifndef NS_FREE_PERMANENT_DATA
// No need to communicate shutdown, the GPU process doesn't need to // No need to communicate shutdown, the GPU process doesn't need to
// communicate anything back. // communicate anything back.
KillHard("NormalShutdown"); KillHard("NormalShutdown");