Bug 1143653 - Typo fix in a variable name. r=me

This commit is contained in:
Nicolas Silva 2015-03-19 12:07:28 +01:00
parent 60b1bc327d
commit 39e7d620f6
2 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ CompositorD3D9::CompositorD3D9(PCompositorParent* aParent, nsIWidget *aWidget)
: Compositor(aParent)
, mWidget(aWidget)
, mDeviceResetCount(0)
, mFailedResetAttemps(0)
, mFailedResetAttempts(0)
{
Compositor::SetBackend(LayersBackend::LAYERS_D3D9);
}
@ -559,7 +559,7 @@ CompositorD3D9::EnsureSwapChain()
// We have a swap chain, lets initialise it
DeviceManagerState state = mSwapChain->PrepareForRendering();
if (state == DeviceOK) {
mFailedResetAttemps = 0;
mFailedResetAttempts = 0;
return true;
}
// Swap chain could not be initialised, handle the failure
@ -613,13 +613,13 @@ CompositorD3D9::Ready()
void
CompositorD3D9::FailedToResetDevice() {
mFailedResetAttemps += 1;
mFailedResetAttempts += 1;
auto withoutAssertion = CriticalLog::DefaultOptions(false);
gfxCriticalError(withoutAssertion) << "[D3D9] Failed to re-create a D3D9 device, attempt "
<< mFailedResetAttemps;
<< mFailedResetAttempts;
// 10 is a totally arbitrary number that we may want to increase or decrease
// depending on how things behave in the wild.
if (mFailedResetAttemps > 10) {
if (mFailedResetAttempts > 10) {
MOZ_CRASH("Unable to get a working D3D9 Compositor");
}
}

View File

@ -170,7 +170,7 @@ private:
nsIntSize mSize;
uint32_t mDeviceResetCount;
uint32_t mFailedResetAttemps;
uint32_t mFailedResetAttempts;
};
}