diff options
author | Hyunho Kang <hhstark.kang@samsung.com> | 2017-07-10 17:40:59 +0900 |
---|---|---|
committer | Hyunho Kang <hhstark.kang@samsung.com> | 2017-07-10 09:04:57 +0000 |
commit | b68789ebefdf740b7854c5bb215d8b15458b6fb3 (patch) | |
tree | ed09ece1e47bcedc73f57bf4169b9d2e0fd379b3 | |
parent | 1f8ae478e255b5f70dda9cc40152f74ebda7529b (diff) | |
download | launchpad-b68789ebefdf740b7854c5bb215d8b15458b6fb3.tar.gz launchpad-b68789ebefdf740b7854c5bb215d8b15458b6fb3.tar.bz2 launchpad-b68789ebefdf740b7854c5bb215d8b15458b6fb3.zip |
Restrict wearable widget surface buffer numbersubmit/tizen_3.0/20170712.223203accepted/tizen/3.0/wearable/20170713.222909accepted/tizen/3.0/tv/20170713.222859accepted/tizen/3.0/mobile/20170713.222849accepted/tizen/3.0/ivi/20170713.222919accepted/tizen/3.0/common/20170714.174840
Wearble devices have do not enough memory so, we need to
reduce widget application memory as much as possible.
Application's default window buffer number is 3~4 and
it's too much for widget application, so let's modify it 2.
https://review.tizen.org/gerrit/#/c/137812/ (launchpad)
https://review.tizen.org/gerrit/#/c/137904/ (amd)
https://review.tizen.org/gerrit/#/c/137917/ (aul-1)
Change-Id: I7c48cb0ce6b9c55f9b363a8d9d31b8b27d36575c
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-rw-r--r-- | inc/key.h | 1 | ||||
-rw-r--r-- | src/launchpad_common.c | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -45,6 +45,7 @@ extern "C" { #define AUL_K_LOADER_NAME "__AUL_LOADER_NAME__" #define AUL_K_SDK "__AUL_SDK__" #define AUL_K_ORG_CALLER_PID "__AUL_ORG_CALLER_PID__" +#define AUL_K_PROFILE "__AUL_PROFILE__" #ifdef __cplusplus } diff --git a/src/launchpad_common.c b/src/launchpad_common.c index ee25fc6..f98d928 100644 --- a/src/launchpad_common.c +++ b/src/launchpad_common.c @@ -684,6 +684,12 @@ void _set_env(appinfo_t *menu_info, bundle *kb) snprintf(buf, sizeof(buf), "%d", getpid()); setenv("AUL_PID", buf, 1); + str = bundle_get_val(kb, AUL_K_PROFILE); + if (str != NULL && strcmp(str, "wearable") == 0 && + menu_info->comp_type && + strcmp(menu_info->comp_type, "widgetapp") == 0) + setenv("EVAS_WAYLAND_SHM_BUFFERS", "2", 1); + #ifdef TIZEN_FEATURE_SET_PERSONALITY_32 int res = personality(PER_LINUX32); |