mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1143653 - Typo fix in a variable name. r=me
This commit is contained in:
parent
60b1bc327d
commit
39e7d620f6
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ private:
|
||||
nsIntSize mSize;
|
||||
|
||||
uint32_t mDeviceResetCount;
|
||||
uint32_t mFailedResetAttemps;
|
||||
uint32_t mFailedResetAttempts;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user