migration of hwacceleration related changes from tizen 2.4 14/69614/1
authorjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 16 May 2016 06:40:46 +0000 (15:40 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 16 May 2016 06:40:46 +0000 (15:40 +0900)
Change-Id: I2b6c88205fd77270d1038451f177baa7e82a703b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/tpk_manifest_handlers/ui_application_handler.cc
src/tpk_manifest_handlers/widget_application_handler.cc

index f1e0e69a7f8b83b512b8c2cdedf23af07aef3434..13ad911c9dd23752cf0e4301de6c3c717f67c613 100644 (file)
@@ -253,8 +253,15 @@ bool ParseUIApplicationAndStore(
   }
 
   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,
index 6f03c7cba7fb190df9e317a6ca000262c0106d61..b417e9fd0b976a376627cc30d6c86e16e25248f7 100644 (file)
@@ -177,8 +177,16 @@ bool ParseWidgetApplicationAndStore(
   }
 
   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);
 }