return;
}
- // 1. send HOOK with pid
- _e_policy_wl_hook_call(E_POLICY_WL_HOOK_BASE_OUTPUT_RESOLUTION_GET, pid);
- // 2. module must set the base_output_resolution.
- if (!e_appinfo_base_output_resolution_get(epai, &width, &height))
+ /* about base output resolution */
+ if (e_config->configured_output_resolution.use)
{
- ELOGF("TZ_APPINFO", "failed to set base_output_resolution in module, pid:%u, appid:%s", NULL, pid, appid);
- return;
- }
- // 3. server has to get the base_screern_resolution via e_appinfo_base_output_resolution_get.
- // 3-1. if success, use the base_rescreen_resolution
- // 3-2. if fail, get the base_output_resolution from the E_Comp_Wl_Output.
- // 4. send output.
- if (!e_comp_wl_pid_output_configured_resolution_send(pid, width, height))
- {
- ELOGF("TZ_APPINFO", "failed to send output_configured_resolution, pid:%u, appid:%s", NULL, pid, appid);
- return;
+ // 1. send HOOK with pid
+ _e_policy_wl_hook_call(E_POLICY_WL_HOOK_BASE_OUTPUT_RESOLUTION_GET, pid);
+ // 2. module must set the base_output_resolution.
+ if (!e_appinfo_base_output_resolution_get(epai, &width, &height))
+ {
+ ELOGF("TZ_APPINFO", "failed to set base_output_resolution in module, pid:%u, appid:%s", NULL, pid, appid);
+ return;
+ }
+ // 3. server has to get the base_screern_resolution via e_appinfo_base_output_resolution_get.
+ // 3-1. if success, use the base_rescreen_resolution
+ // 3-2. if fail, get the base_output_resolution from the E_Comp_Wl_Output.
+
+ // 4. send output.
+ if (!e_comp_wl_pid_output_configured_resolution_send(pid, width, height))
+ {
+ ELOGF("TZ_APPINFO", "failed to send output_configured_resolution, pid:%u, appid:%s", NULL, pid, appid);
+ return;
+ }
}
return;
e_appinfo_ready_metadata(epai, pid);
/* about base output resolution */
-
- // 1. send HOOK with pid
- _e_policy_wl_hook_call(E_POLICY_WL_HOOK_BASE_OUTPUT_RESOLUTION_GET, pid);
- // 2. module must set the base_output_resolution.
- if (!e_appinfo_base_output_resolution_get(epai, &width, &height))
+ if (e_config->configured_output_resolution.use)
{
- ELOGF("TZ_APPINFO", "failed to set base_output_resolution in module, pid:%u, appid:%s", NULL, pid, appid);
- return;
- }
- // 3. server has to get the base_screern_resolution via e_appinfo_base_output_resolution_get.
- // 3-1. if success, use the base_rescreen_resolution
- // 3-2. if fail, get the base_output_resolution from the E_Comp_Wl_Output.
+ // 1. send HOOK with pid
+ _e_policy_wl_hook_call(E_POLICY_WL_HOOK_BASE_OUTPUT_RESOLUTION_GET, pid);
+ // 2. module must set the base_output_resolution.
+ if (!e_appinfo_base_output_resolution_get(epai, &width, &height))
+ {
+ ELOGF("TZ_APPINFO", "failed to set base_output_resolution in module, pid:%u, appid:%s", NULL, pid, appid);
+ return;
+ }
+ // 3. server has to get the base_screern_resolution via e_appinfo_base_output_resolution_get.
+ // 3-1. if success, use the base_rescreen_resolution
+ // 3-2. if fail, get the base_output_resolution from the E_Comp_Wl_Output.
- // 4. send output.
- if (!e_comp_wl_pid_output_configured_resolution_send(pid, width, height))
- {
- ELOGF("TZ_APPINFO", "failed to send output_configured_resolution, pid:%u, appid:%s", NULL, pid, appid);
- return;
+ // 4. send output.
+ if (!e_comp_wl_pid_output_configured_resolution_send(pid, width, height))
+ {
+ ELOGF("TZ_APPINFO", "failed to send output_configured_resolution, pid:%u, appid:%s", NULL, pid, appid);
+ return;
+ }
}
}
polwl->globals = eina_list_append(polwl->globals, global);
}
- if (e_config->configured_output_resolution.use)
- {
- global = wl_global_create(e_comp_wl->wl.disp,
- &tizen_launch_appinfo_interface,
- 1,
- NULL,
- _tzlaunch_appinfo_cb_bind);
- EINA_SAFETY_ON_NULL_GOTO(global, err);
+ global = wl_global_create(e_comp_wl->wl.disp,
+ &tizen_launch_appinfo_interface,
+ 1,
+ NULL,
+ _tzlaunch_appinfo_cb_bind);
+ EINA_SAFETY_ON_NULL_GOTO(global, err);
- polwl->globals = eina_list_append(polwl->globals, global);
- }
+ polwl->globals = eina_list_append(polwl->globals, global);
return EINA_TRUE;