зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1509030 : The X11 widget populate graphics adapter annotations through AddCrashReportAnnotations() r=gsvelto
Bug 1509030 : The X11 widget populate graphics adapter annotations through AddCrashReportAnnotations() Differential Revision: https://phabricator.services.mozilla.com/D18368 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
500b02daa9
Коммит
48193e74d3
|
@ -44,6 +44,15 @@ nsresult GfxInfo::Init() {
|
|||
return GfxInfoBase::Init();
|
||||
}
|
||||
|
||||
void GfxInfo::AddCrashReportAnnotations() {
|
||||
CrashReporter::AnnotateCrashReport(CrashReporter::Annotation::AdapterVendorID,
|
||||
mVendor);
|
||||
CrashReporter::AnnotateCrashReport(CrashReporter::Annotation::AdapterDeviceID,
|
||||
mRenderer);
|
||||
CrashReporter::AnnotateCrashReport(
|
||||
CrashReporter::Annotation::AdapterDriverVersion, mVersion);
|
||||
}
|
||||
|
||||
void GfxInfo::GetData() {
|
||||
// to understand this function, see bug 639842. We retrieve the OpenGL driver
|
||||
// information in a separate process to protect against bad drivers.
|
||||
|
@ -168,15 +177,7 @@ void GfxInfo::GetData() {
|
|||
mAdapterDescription.AppendLiteral(" -- ");
|
||||
mAdapterDescription.Append(mRenderer);
|
||||
|
||||
nsAutoCString note;
|
||||
note.AppendLiteral("OpenGL: ");
|
||||
note.Append(mAdapterDescription);
|
||||
note.AppendLiteral(" -- ");
|
||||
note.Append(mVersion);
|
||||
if (mHasTextureFromPixmap) note.AppendLiteral(" -- texture_from_pixmap");
|
||||
note.Append('\n');
|
||||
|
||||
CrashReporter::AppendAppNotesToCrashReport(note);
|
||||
AddCrashReportAnnotations();
|
||||
|
||||
// determine the major OpenGL version. That's the first integer in the version
|
||||
// string.
|
||||
|
|
Загрузка…
Ссылка в новой задаче