From ace956c9562912dc99f165ca8f95d40804b9eceb Mon Sep 17 00:00:00 2001 From: "Geunsun, Lee" Date: Mon, 2 Jan 2017 18:29:41 +0900 Subject: [PATCH] Disables HWC(HW compositor) to reduce memory usage Change-Id: I9499091b1253d54725d6b3b80d66079ad48a4ee7 --- CMakeLists.txt | 3 --- src/animation.c | 7 ++----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a52197c..3ec6636 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,9 +118,6 @@ INSTALL(FILES ${CMAKE_BINARY_DIR}/480x800_PowerOn.edj DESTINATION share/edje) INSTALL(FILES ${CMAKE_BINARY_DIR}/480x800_PowerOff.edj DESTINATION share/edje) INSTALL(FILES ${CMAKE_BINARY_DIR}/720x1280_PowerOn.edj DESTINATION share/edje) INSTALL(FILES ${CMAKE_BINARY_DIR}/720x1280_PowerOff.edj DESTINATION share/edje) -IF("${TIZEN_PROFILE_NAME}" STREQUAL "wearable") -ADD_DEFINITIONS("-DTIZEN_PROFILE_WEARABLE") -ENDIF() IF("${ARCH}" STREQUAL "emulator") ADD_DEFINITIONS("-DEMULATOR_TYPE") INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/sound/SDK_poweron/poweron.wav DESTINATION share/keysound) diff --git a/src/animation.c b/src/animation.c index 0158f75..eeeeb9d 100644 --- a/src/animation.c +++ b/src/animation.c @@ -199,12 +199,9 @@ static int create_window(void) int x, y = 0; -#ifdef TIZEN_PROFILE_WEARABLE - _D("Use GL back-end"); - elm_config_accel_preference_set("3d"); -#endif - s_animation.win = elm_win_add(NULL, "BOOT_ANIMATION", ELM_WIN_NOTIFICATION); + elm_win_aux_hint_add(s_animation.win, "wm.comp.win.always.selective.mode", "1"); + elm_win_role_set(s_animation.win, "alert"); if (!s_animation.win) { _E("Failed to create a new window"); -- 2.7.4