summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunho Kang <hhstark.kang@samsung.com>2017-07-10 17:40:59 +0900
committerHyunho Kang <hhstark.kang@samsung.com>2017-07-10 09:04:57 +0000
commitb68789ebefdf740b7854c5bb215d8b15458b6fb3 (patch)
treeed09ece1e47bcedc73f57bf4169b9d2e0fd379b3
parent1f8ae478e255b5f70dda9cc40152f74ebda7529b (diff)
downloadlaunchpad-accepted/tizen/3.0/tv/20170713.222859.tar.gz
launchpad-accepted/tizen/3.0/tv/20170713.222859.tar.bz2
launchpad-accepted/tizen/3.0/tv/20170713.222859.zip
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.h1
-rw-r--r--src/launchpad_common.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/inc/key.h b/inc/key.h
index e83bb14..b102da1 100644
--- a/inc/key.h
+++ b/inc/key.h
@@ -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);