From 5bcc059861eba1fff56a295a68ff7ef5da302be2 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Fri, 9 Nov 2018 18:14:58 +0900 Subject: [PATCH] e_hwc_planes: allow begin hwc even if nocomp_override is positive some hwc module want to use hwc even if nocomp_override is positive. core policy of hwc set all plane to null when nocomp_override is positive. if hwc module prepare client to plane, hwc mode is begined. Change-Id: I6bef487acac93698570c177394e3df02bbe07985 --- src/bin/e_hwc_planes.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/e_hwc_planes.c b/src/bin/e_hwc_planes.c index 60979fe3e0..e3b81a5b5a 100644 --- a/src/bin/e_hwc_planes.c +++ b/src/bin/e_hwc_planes.c @@ -394,6 +394,10 @@ _e_hwc_planes_prepare(E_Hwc *hwc, E_Zone *zone) Eina_List *hwc_ok_clist = NULL, *vis_clist = NULL; E_Output *output = hwc->output; + _e_hwc_planes_prepare_init(hwc); + + if (e_comp->nocomp_override > 0) return EINA_FALSE; + vis_clist = e_comp_vis_ec_list_get(zone); if (!vis_clist) return EINA_FALSE; @@ -432,8 +436,6 @@ _e_hwc_planes_prepare(E_Hwc *hwc, E_Zone *zone) if ((n_vis < 1) || (n_ec < 1)) goto done; - _e_hwc_planes_prepare_init(hwc); - if (n_cur >= 1) n_skip = _e_hwc_planes_prepare_cursor(output, n_cur, hwc_ok_clist); @@ -463,7 +465,7 @@ _e_hwc_planes_usable(E_Hwc *hwc) EINA_SAFETY_ON_NULL_RETURN_VAL(zone, EINA_FALSE); // check whether to use hwc and prepare the core assignment policy - if (!_e_hwc_planes_prepare(hwc, zone)) return EINA_FALSE; + _e_hwc_planes_prepare(hwc, zone); // extra policy can replace core policy e_comp_hook_call(E_COMP_HOOK_PREPARE_PLANE, NULL); @@ -549,8 +551,6 @@ _e_hwc_planes_begin(E_Hwc *hwc) E_Hwc_Mode mode = E_HWC_MODE_NONE; Eina_Bool set = EINA_FALSE; - if (e_comp->nocomp_override > 0) return; - if (_e_hwc_planes_can_hwcompose(eout)) { ep_l = e_output_planes_get(eout); -- 2.34.1