var SystemInfo = function() {};
SystemInfo.prototype.getCapabilities = function() {
- privUtils_.warn(
+ privUtils_.deprecationWarn(
'getCapabilities() is deprecated and will be removed' +
'from next release. Use getCapability() instead.',
'2.3'
const char* kPlatformCoreDelimiter = " | ";
const char* kPlatformCoreArmv6 = "armv6";
const char* kPlatformCoreArmv7 = "armv7";
+const char* kPlatformCoreArmv8 = "armv8";
const char* kPlatformCoreAarch64 = "aarch64";
const char* kPlatformCoreX86 = "x86";
const char* kPlatformCoreX86_64 = "x86_64";
texture_format += kOpenglesTexturePvrtc;
}
- if (texture_format.empty()) {
- // this exception is converted to "Undefined" value in JS layer
- std::string log_msg = "Platform error while getting OpenGL-ES texture format";
- return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, log_msg);
- }
+ // empty texture_format is valid: https://docs.tizen.org/application/native/guides/device/system/#opengl
+
*result = texture_format;
return PlatformResult(ErrorCode::NO_ERROR);
}
}
}
+ ret = GetValueBoolNative("tizen.org/feature/platform.core.cpu.arch.armv8", &bool_result);
+ if (ret && bool_result) {
+ if (!result.empty()) {
+ result += kPlatformCoreDelimiter;
+ }
+ result += kPlatformCoreArmv8;
+ }
+
ret = GetValueBoolNative("tizen.org/feature/platform.core.cpu.arch.x86", &bool_result);
if (ret.IsError()) {
return ret;