mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 619578. Add Android HW info to GfxInfo. r=vlad,a=blocking-fennec
--HG-- extra : rebase_source : b5a08089a29f8df06494803d06eade5224b8f6a0
This commit is contained in:
parent
fbaf7d1423
commit
3cdeccbf53
@ -42,6 +42,8 @@
|
||||
#include "prprf.h"
|
||||
#include "EGLUtils.h"
|
||||
|
||||
#include "AndroidBridge.h"
|
||||
|
||||
#if defined(MOZ_CRASHREPORTER) && defined(MOZ_ENABLE_LIBXUL)
|
||||
#include "nsExceptionHandler.h"
|
||||
#include "nsICrashReporter.h"
|
||||
@ -80,6 +82,19 @@ NS_IMETHODIMP
|
||||
GfxInfo::GetAdapterDescription(nsAString & aAdapterDescription)
|
||||
{
|
||||
aAdapterDescription.AssignASCII(mozilla::gl::GetVendor());
|
||||
if (mozilla::AndroidBridge::Bridge()) {
|
||||
nsAutoString str;
|
||||
aAdapterDescription.Append(NS_LITERAL_STRING(" "));
|
||||
if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "MODEL", str))
|
||||
aAdapterDescription.Append(str);
|
||||
aAdapterDescription.Append(NS_LITERAL_STRING(" "));
|
||||
if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "MANUFACTURER", str))
|
||||
aAdapterDescription.Append(str);
|
||||
aAdapterDescription.Append(NS_LITERAL_STRING(" "));
|
||||
if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "HARDWARE", str))
|
||||
aAdapterDescription.Append(str);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user