зеркало из https://github.com/mozilla/pjs.git
Bug 689598: fix crash reporter on Android r=BenWa
This commit is contained in:
Родитель
d6fb84ae9f
Коммит
d59010d3b5
|
@ -88,8 +88,6 @@ GfxInfo::GetCleartypeParameters(nsAString & aCleartypeParams)
|
||||||
nsresult
|
nsresult
|
||||||
GfxInfo::Init()
|
GfxInfo::Init()
|
||||||
{
|
{
|
||||||
mSetCrashReportAnnotations = false;
|
|
||||||
|
|
||||||
mAdapterDescription.AssignASCII(mozilla::gl::GetVendor());
|
mAdapterDescription.AssignASCII(mozilla::gl::GetVendor());
|
||||||
if (mozilla::AndroidBridge::Bridge()) {
|
if (mozilla::AndroidBridge::Bridge()) {
|
||||||
nsAutoString str;
|
nsAutoString str;
|
||||||
|
@ -124,6 +122,8 @@ GfxInfo::Init()
|
||||||
mAndroidSDKVersion = version;
|
mAndroidSDKVersion = version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AddOpenGLCrashReportAnnotations();
|
||||||
|
|
||||||
return GfxInfoBase::Init();
|
return GfxInfoBase::Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -311,11 +311,6 @@ GfxInfo::GetFeatureStatusImpl(PRInt32 aFeature,
|
||||||
// Don't evaluate special cases when evaluating the downlaoded blocklist.
|
// Don't evaluate special cases when evaluating the downlaoded blocklist.
|
||||||
if (!aDriverInfo.Length()) {
|
if (!aDriverInfo.Length()) {
|
||||||
if (aFeature == FEATURE_OPENGL_LAYERS) {
|
if (aFeature == FEATURE_OPENGL_LAYERS) {
|
||||||
if (!mSetCrashReportAnnotations) {
|
|
||||||
AddOpenGLCrashReportAnnotations();
|
|
||||||
mSetCrashReportAnnotations = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The following code is an old way to whitelist devices when we're ready.
|
/* The following code is an old way to whitelist devices when we're ready.
|
||||||
* It is staying here for reference. The best way to do this now is to add
|
* It is staying here for reference. The best way to do this now is to add
|
||||||
* an entry in the list above. There is a dummy entry which will whitelist a
|
* an entry in the list above. There is a dummy entry which will whitelist a
|
||||||
|
|
|
@ -91,7 +91,6 @@ protected:
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void AddOpenGLCrashReportAnnotations();
|
void AddOpenGLCrashReportAnnotations();
|
||||||
bool mSetCrashReportAnnotations;
|
|
||||||
nsString mRendererIDsString;
|
nsString mRendererIDsString;
|
||||||
nsString mAdapterRAMString;
|
nsString mAdapterRAMString;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче