Add window information list in 'task_info'.
Each window includes information such as visibility, focusing status,
and coordinate for LMK governor
resourced low memory killer (LMK) passes app information to LMK governor
during LMK process. Sometimes, LMK governor needs to know window information of
foreground app to prioritize which apps to be killed. This is because
foreground app(s) are visible status. If visible app(s) are killed by
LMK suddenly, then it embarrass the user.
Change-Id: I6b7b4ae00ca95534e7d99ec8b412909038d2fdc6
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
*/
bool *proc_app_info_oom_killed;
int proc_app_info_flags;
+
+ /**
+ * TODO: A process can have more than one window,
+ * and an app can have more than one process. Therefore,
+ * a task_info can have more than one window.
+ */
+ int window_pid;
+ int x;
+ int y;
+ int z;
+ int w;
+ int h;
+ int layer;
+ int opaque;
+ int visibility;
+ bool is_transformed;
+ bool alpha;
+ bool is_focused;
+ bool is_mapped;
};
/**