}
std::string hwacceleration;
- if (app_dict.GetString(kUIApplicationHwAccelerationKey, &hwacceleration))
+ if (app_dict.GetString(kUIApplicationHwAccelerationKey, &hwacceleration)) {
+ if (hwacceleration == "use-GL")
+ hwacceleration = "on";
+ else if (hwacceleration == "not-use-GL")
+ hwacceleration = "off";
+ else if (hwacceleration == "use-system-setting")
+ hwacceleration = "default";
uiapplicationinfo->app_info.set_hwacceleration(hwacceleration);
+ }
std::string splash_screen_display;
if (app_dict.GetString(kUIApplicationSplashScreenDisplayKey,
}
std::string hwacceleration;
- if (app_dict.GetString(kWidgetApplicationHwAccelerationKey, &hwacceleration))
+ if (app_dict.GetString(kWidgetApplicationHwAccelerationKey,
+ &hwacceleration)) {
+ if (hwacceleration == "use-GL")
+ hwacceleration = "on";
+ else if (hwacceleration == "not-use-GL")
+ hwacceleration = "off";
+ else if (hwacceleration == "use-system-setting")
+ hwacceleration = "default";
widgetapplicationinfo->app_info.set_hwacceleration(hwacceleration);
+ }
return InitializeParsing(app_dict, widgetapplicationinfo, error);
}