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:
inspiro 2019-02-05 09:14:41 +00:00
Родитель 500b02daa9
Коммит 48193e74d3
1 изменённых файлов: 10 добавлений и 9 удалений

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

@ -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.