Chromium Code Reviews| Index: base/sys_info_android.cc |
| diff --git a/base/sys_info_android.cc b/base/sys_info_android.cc |
| index cb25cdc51a3817c7fb2e9fc5a96781164ac0c6b8..ddc12453ecd23e875bb2b607d041a28de911c0a1 100644 |
| --- a/base/sys_info_android.cc |
| +++ b/base/sys_info_android.cc |
| @@ -9,6 +9,7 @@ |
| #include <stdint.h> |
| #include <sys/system_properties.h> |
| +#include "base/android/jni_android.h" |
| #include "base/android/sys_utils.h" |
| #include "base/lazy_instance.h" |
| #include "base/logging.h" |
| @@ -215,6 +216,10 @@ static base::LazyInstance< |
| g_lazy_low_end_device = LAZY_INSTANCE_INITIALIZER; |
| bool SysInfo::IsLowEndDevice() { |
| + // When command buffer is compiled as a standalone library, the process |
|
Yaron
2016/03/05 01:31:05
I don't think this comment makes sense here. It's
|
| + // might not have a Java environment. |
| + if (!base::android::IsVMInitialized()) |
| + return false; |
| return g_lazy_low_end_device.Get().value(); |
| } |