mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 9f1c312a85ee (bug 918386) for crashes.
This commit is contained in:
parent
623bd04b5e
commit
07b5bd203b
@ -320,22 +320,6 @@ GfxInfo::GetAdapterDeviceID2(nsAString & aAdapterDeviceID)
|
|||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
EnsureInitialized();
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID2; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID2(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
EnsureInitialized();
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute boolean isGPU2Active; */
|
/* readonly attribute boolean isGPU2Active; */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
||||||
@ -352,8 +336,6 @@ GfxInfo::AddCrashReportAnnotations()
|
|||||||
mGLStrings->Vendor());
|
mGLStrings->Vendor());
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDeviceID"),
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDeviceID"),
|
||||||
mGLStrings->Renderer());
|
mGLStrings->Renderer());
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDriverVersion"),
|
|
||||||
mGLStrings->Version());
|
|
||||||
|
|
||||||
/* Add an App Note for now so that we get the data immediately. These
|
/* Add an App Note for now so that we get the data immediately. These
|
||||||
* can go away after we store the above in the socorro db */
|
* can go away after we store the above in the socorro db */
|
||||||
|
@ -37,7 +37,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
||||||
@ -45,7 +44,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID2(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
||||||
|
@ -30,7 +30,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
||||||
@ -38,7 +37,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID2(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
||||||
|
@ -245,20 +245,6 @@ GfxInfo::GetAdapterDeviceID2(nsAString & aAdapterDeviceID)
|
|||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID2; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID2(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute boolean isGPU2Active; */
|
/* readonly attribute boolean isGPU2Active; */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
||||||
@ -270,22 +256,18 @@ void
|
|||||||
GfxInfo::AddCrashReportAnnotations()
|
GfxInfo::AddCrashReportAnnotations()
|
||||||
{
|
{
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
#if defined(MOZ_CRASHREPORTER)
|
||||||
nsString deviceID, vendorID, driverVersion;
|
nsString deviceID, vendorID;
|
||||||
nsAutoCString narrowDeviceID, narrowVendorID, narrowDriverVersion;
|
nsAutoCString narrowDeviceID, narrowVendorID;
|
||||||
|
|
||||||
GetAdapterDeviceID(deviceID);
|
GetAdapterDeviceID(deviceID);
|
||||||
CopyUTF16toUTF8(deviceID, narrowDeviceID);
|
CopyUTF16toUTF8(deviceID, narrowDeviceID);
|
||||||
GetAdapterVendorID(vendorID);
|
GetAdapterVendorID(vendorID);
|
||||||
CopyUTF16toUTF8(vendorID, narrowVendorID);
|
CopyUTF16toUTF8(vendorID, narrowVendorID);
|
||||||
GetAdapterDriverVersion(driverVersion);
|
|
||||||
CopyUTF16toUTF8(driverVersion, narrowDriverVersion);
|
|
||||||
|
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterVendorID"),
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterVendorID"),
|
||||||
narrowVendorID);
|
narrowVendorID);
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDeviceID"),
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDeviceID"),
|
||||||
narrowDeviceID);
|
narrowDeviceID);
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDriverVersion"),
|
|
||||||
narrowDriverVersion);
|
|
||||||
/* Add an App Note for now so that we get the data immediately. These
|
/* Add an App Note for now so that we get the data immediately. These
|
||||||
* can go away after we store the above in the socorro db */
|
* can go away after we store the above in the socorro db */
|
||||||
nsAutoCString note;
|
nsAutoCString note;
|
||||||
|
@ -140,20 +140,6 @@ GfxInfo::GetAdapterDeviceID2(nsAString & aAdapterDeviceID)
|
|||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID2; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID2(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute boolean isGPU2Active; */
|
/* readonly attribute boolean isGPU2Active; */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
||||||
|
@ -29,7 +29,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
||||||
@ -37,7 +36,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID2(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
||||||
|
@ -37,9 +37,6 @@ interface nsIGfxInfo : nsISupports
|
|||||||
readonly attribute DOMString adapterDeviceID;
|
readonly attribute DOMString adapterDeviceID;
|
||||||
readonly attribute DOMString adapterDeviceID2;
|
readonly attribute DOMString adapterDeviceID2;
|
||||||
|
|
||||||
readonly attribute DOMString adapterSubsysID;
|
|
||||||
readonly attribute DOMString adapterSubsysID2;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The amount of RAM in MB in the display adapter.
|
* The amount of RAM in MB in the display adapter.
|
||||||
*/
|
*/
|
||||||
|
@ -392,7 +392,7 @@ GfxInfo::Init()
|
|||||||
|
|
||||||
mAdapterVendorID.AppendPrintf("0x%04x", ParseIDFromDeviceID(mDeviceID, "VEN_", 4));
|
mAdapterVendorID.AppendPrintf("0x%04x", ParseIDFromDeviceID(mDeviceID, "VEN_", 4));
|
||||||
mAdapterDeviceID.AppendPrintf("0x%04x", ParseIDFromDeviceID(mDeviceID, "&DEV_", 4));
|
mAdapterDeviceID.AppendPrintf("0x%04x", ParseIDFromDeviceID(mDeviceID, "&DEV_", 4));
|
||||||
mAdapterSubsysID.AppendPrintf("%08x", ParseIDFromDeviceID(mDeviceID, "&SUBSYS_", 8));
|
mAdapterSubsysID = ParseIDFromDeviceID(mDeviceID, "&SUBSYS_", 8);
|
||||||
|
|
||||||
// We now check for second display adapter.
|
// We now check for second display adapter.
|
||||||
|
|
||||||
@ -496,7 +496,7 @@ GfxInfo::Init()
|
|||||||
mDriverDate2 = driverDate2;
|
mDriverDate2 = driverDate2;
|
||||||
mAdapterVendorID2.AppendPrintf("0x%04x", adapterVendorID2);
|
mAdapterVendorID2.AppendPrintf("0x%04x", adapterVendorID2);
|
||||||
mAdapterDeviceID2.AppendPrintf("0x%04x", adapterDeviceID2);
|
mAdapterDeviceID2.AppendPrintf("0x%04x", adapterDeviceID2);
|
||||||
mAdapterSubsysID2.AppendPrintf("%08x", ParseIDFromDeviceID(mDeviceID2, "&SUBSYS_", 8));
|
mAdapterSubsysID2 = ParseIDFromDeviceID(mDeviceID2, "&SUBSYS_", 8);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -684,22 +684,6 @@ GfxInfo::GetAdapterDeviceID2(nsAString & aAdapterDeviceID)
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
aAdapterSubsysID = mAdapterSubsysID;
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID2; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID2(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
aAdapterSubsysID = mAdapterSubsysID2;
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute boolean isGPU2Active; */
|
/* readonly attribute boolean isGPU2Active; */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
||||||
@ -735,27 +719,21 @@ GfxInfo::AddCrashReportAnnotations()
|
|||||||
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("DriverVersionMismatch\n"));
|
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("DriverVersionMismatch\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
nsString deviceID, vendorID, driverVersion, subsysID;
|
nsString deviceID, vendorID;
|
||||||
nsCString narrowDeviceID, narrowVendorID, narrowDriverVersion, narrowSubsysID;
|
nsCString narrowDeviceID, narrowVendorID;
|
||||||
|
nsAutoString adapterDriverVersionString;
|
||||||
|
|
||||||
GetAdapterDeviceID(deviceID);
|
GetAdapterDeviceID(deviceID);
|
||||||
CopyUTF16toUTF8(deviceID, narrowDeviceID);
|
CopyUTF16toUTF8(deviceID, narrowDeviceID);
|
||||||
GetAdapterVendorID(vendorID);
|
GetAdapterVendorID(vendorID);
|
||||||
CopyUTF16toUTF8(vendorID, narrowVendorID);
|
CopyUTF16toUTF8(vendorID, narrowVendorID);
|
||||||
GetAdapterDriverVersion(driverVersion);
|
GetAdapterDriverVersion(adapterDriverVersionString);
|
||||||
CopyUTF16toUTF8(driverVersion, narrowDriverVersion);
|
|
||||||
GetAdapterSubsysID(subsysID);
|
|
||||||
CopyUTF16toUTF8(subsysID, narrowSubsysID);
|
|
||||||
|
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterVendorID"),
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterVendorID"),
|
||||||
narrowVendorID);
|
narrowVendorID);
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDeviceID"),
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDeviceID"),
|
||||||
narrowDeviceID);
|
narrowDeviceID);
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDriverVersion"),
|
|
||||||
narrowDriverVersion);
|
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterSubsysID"),
|
|
||||||
narrowSubsysID);
|
|
||||||
|
|
||||||
/* Add an App Note for now so that we get the data immediately. These
|
/* Add an App Note for now so that we get the data immediately. These
|
||||||
* can go away after we store the above in the socorro db */
|
* can go away after we store the above in the socorro db */
|
||||||
nsAutoCString note;
|
nsAutoCString note;
|
||||||
@ -764,10 +742,9 @@ GfxInfo::AddCrashReportAnnotations()
|
|||||||
note.Append(narrowVendorID);
|
note.Append(narrowVendorID);
|
||||||
note.AppendLiteral(", AdapterDeviceID: ");
|
note.AppendLiteral(", AdapterDeviceID: ");
|
||||||
note.Append(narrowDeviceID);
|
note.Append(narrowDeviceID);
|
||||||
note.AppendLiteral(", AdapterSubsysID: ");
|
note.AppendPrintf(", AdapterSubsysID: %08x, ", mAdapterSubsysID);
|
||||||
note.Append(narrowSubsysID);
|
note.AppendLiteral("AdapterDriverVersion: ");
|
||||||
note.AppendLiteral(", AdapterDriverVersion: ");
|
note.Append(NS_LossyConvertUTF16toASCII(adapterDriverVersionString));
|
||||||
note.Append(NS_LossyConvertUTF16toASCII(driverVersion));
|
|
||||||
|
|
||||||
if (vendorID == GfxDriverInfo::GetDeviceVendor(VendorAll)) {
|
if (vendorID == GfxDriverInfo::GetDeviceVendor(VendorAll)) {
|
||||||
/* if we didn't find a valid vendorID lets append the mDeviceID string to try to find out why */
|
/* if we didn't find a valid vendorID lets append the mDeviceID string to try to find out why */
|
||||||
@ -780,9 +757,9 @@ GfxInfo::AddCrashReportAnnotations()
|
|||||||
note.Append("\n");
|
note.Append("\n");
|
||||||
|
|
||||||
if (mHasDualGPU) {
|
if (mHasDualGPU) {
|
||||||
nsString deviceID2, vendorID2, subsysID2;
|
nsString deviceID2, vendorID2;
|
||||||
nsAutoString adapterDriverVersionString2;
|
nsAutoString adapterDriverVersionString2;
|
||||||
nsCString narrowDeviceID2, narrowVendorID2, narrowSubsysID2;
|
nsCString narrowDeviceID2, narrowVendorID2;
|
||||||
|
|
||||||
note.AppendLiteral("Has dual GPUs. GPU #2: ");
|
note.AppendLiteral("Has dual GPUs. GPU #2: ");
|
||||||
GetAdapterDeviceID2(deviceID2);
|
GetAdapterDeviceID2(deviceID2);
|
||||||
@ -790,15 +767,12 @@ GfxInfo::AddCrashReportAnnotations()
|
|||||||
GetAdapterVendorID2(vendorID2);
|
GetAdapterVendorID2(vendorID2);
|
||||||
CopyUTF16toUTF8(vendorID2, narrowVendorID2);
|
CopyUTF16toUTF8(vendorID2, narrowVendorID2);
|
||||||
GetAdapterDriverVersion2(adapterDriverVersionString2);
|
GetAdapterDriverVersion2(adapterDriverVersionString2);
|
||||||
GetAdapterSubsysID(subsysID2);
|
|
||||||
CopyUTF16toUTF8(subsysID2, narrowSubsysID2);
|
|
||||||
note.AppendLiteral("AdapterVendorID2: ");
|
note.AppendLiteral("AdapterVendorID2: ");
|
||||||
note.Append(narrowVendorID2);
|
note.Append(narrowVendorID2);
|
||||||
note.AppendLiteral(", AdapterDeviceID2: ");
|
note.AppendLiteral(", AdapterDeviceID2: ");
|
||||||
note.Append(narrowDeviceID2);
|
note.Append(narrowDeviceID2);
|
||||||
note.AppendLiteral(", AdapterSubsysID2: ");
|
note.AppendPrintf(", AdapterSubsysID2: %08x, ", mAdapterSubsysID2);
|
||||||
note.Append(narrowSubsysID2);
|
note.AppendPrintf("AdapterDriverVersion2: ");
|
||||||
note.AppendLiteral(", AdapterDriverVersion2: ");
|
|
||||||
note.Append(NS_LossyConvertUTF16toASCII(adapterDriverVersionString2));
|
note.Append(NS_LossyConvertUTF16toASCII(adapterDriverVersionString2));
|
||||||
}
|
}
|
||||||
CrashReporter::AppendAppNotesToCrashReport(note);
|
CrashReporter::AppendAppNotesToCrashReport(note);
|
||||||
|
@ -28,7 +28,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
||||||
@ -36,7 +35,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID2(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
||||||
@ -74,7 +72,7 @@ private:
|
|||||||
nsString mDeviceKeyDebug;
|
nsString mDeviceKeyDebug;
|
||||||
nsString mAdapterVendorID;
|
nsString mAdapterVendorID;
|
||||||
nsString mAdapterDeviceID;
|
nsString mAdapterDeviceID;
|
||||||
nsString mAdapterSubsysID;
|
uint32_t mAdapterSubsysID;
|
||||||
nsString mDeviceString2;
|
nsString mDeviceString2;
|
||||||
nsString mDriverVersion2;
|
nsString mDriverVersion2;
|
||||||
nsString mDeviceID2;
|
nsString mDeviceID2;
|
||||||
@ -82,7 +80,7 @@ private:
|
|||||||
nsString mDeviceKey2;
|
nsString mDeviceKey2;
|
||||||
nsString mAdapterVendorID2;
|
nsString mAdapterVendorID2;
|
||||||
nsString mAdapterDeviceID2;
|
nsString mAdapterDeviceID2;
|
||||||
nsString mAdapterSubsysID2;
|
uint32_t mAdapterSubsysID2;
|
||||||
uint32_t mWindowsVersion;
|
uint32_t mWindowsVersion;
|
||||||
bool mHasDualGPU;
|
bool mHasDualGPU;
|
||||||
bool mIsGPU2Active;
|
bool mIsGPU2Active;
|
||||||
|
@ -512,20 +512,6 @@ GfxInfo::GetAdapterDeviceID2(nsAString & aAdapterDeviceID)
|
|||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute DOMString adapterSubsysID2; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfo::GetAdapterSubsysID2(nsAString & aAdapterSubsysID)
|
|
||||||
{
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* readonly attribute boolean isGPU2Active; */
|
/* readonly attribute boolean isGPU2Active; */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
||||||
|
@ -27,7 +27,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
|
||||||
@ -35,7 +34,6 @@ public:
|
|||||||
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
|
||||||
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
|
||||||
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
|
||||||
NS_IMETHOD GetAdapterSubsysID2(nsAString & aAdapterSubsysID);
|
|
||||||
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
|
||||||
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
|
||||||
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
|
||||||
|
Loading…
Reference in New Issue
Block a user