mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Annotate crash reports during graphics driver initialization guards. (bug 1181375 part 3, r=mattwoodrow)
This commit is contained in:
parent
a51532ac11
commit
a01b941696
@ -6,6 +6,7 @@
|
|||||||
#include "gfxPrefs.h"
|
#include "gfxPrefs.h"
|
||||||
#include "nsAppDirectoryServiceDefs.h"
|
#include "nsAppDirectoryServiceDefs.h"
|
||||||
#include "nsDirectoryServiceUtils.h"
|
#include "nsDirectoryServiceUtils.h"
|
||||||
|
#include "nsExceptionHandler.h"
|
||||||
#include "nsServiceManagerUtils.h"
|
#include "nsServiceManagerUtils.h"
|
||||||
#include "nsString.h"
|
#include "nsString.h"
|
||||||
#include "nsXULAppAPI.h"
|
#include "nsXULAppAPI.h"
|
||||||
@ -70,6 +71,10 @@ DriverInitCrashDetection::~DriverInitCrashDetection()
|
|||||||
// If we attempted to initialize the driver, and got this far without
|
// If we attempted to initialize the driver, and got this far without
|
||||||
// crashing, assume everything is okay.
|
// crashing, assume everything is okay.
|
||||||
gfxPrefs::SetDriverInitStatus(int32_t(DriverInitStatus::Okay));
|
gfxPrefs::SetDriverInitStatus(int32_t(DriverInitStatus::Okay));
|
||||||
|
|
||||||
|
// Remove the crash report annotation.
|
||||||
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("GraphicsStartupTest"),
|
||||||
|
NS_LITERAL_CSTRING(""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,6 +109,9 @@ DriverInitCrashDetection::AllowDriverInitAttempt()
|
|||||||
// If we crash, we'll just lose this. Not a big deal, next startup we'll
|
// If we crash, we'll just lose this. Not a big deal, next startup we'll
|
||||||
// record the failure.
|
// record the failure.
|
||||||
RecordTelemetry(TelemetryState::EnvironmentChanged);
|
RecordTelemetry(TelemetryState::EnvironmentChanged);
|
||||||
|
|
||||||
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("GraphicsStartupTest"),
|
||||||
|
NS_LITERAL_CSTRING("1"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user