From: Gwanglim Lee Date: Tue, 14 Mar 2017 04:17:27 +0000 (+0900) Subject: rotation: added code to stop compositing until the rotation effect starts X-Git-Tag: submit/tizen/20170314.084108~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d9cda27241b14da0946359758f6f8aa85ec9383;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-effect.git rotation: added code to stop compositing until the rotation effect starts Change-Id: I38bb5bdfe0934fc765becbb0050ffb515fe207d5 --- diff --git a/src/e_mod_effect_rotation.c b/src/e_mod_effect_rotation.c index ffb203e..d34f989 100644 --- a/src/e_mod_effect_rotation.c +++ b/src/e_mod_effect_rotation.c @@ -674,6 +674,11 @@ _rotation_effect_start(Rotation_Effect *effect) if ((!effect->ctx_begin) || (!effect->ctx_end)) return; if (effect->running) return; + /* now, we're going to start rotation effect. + * so, unblock updating canvas (compositing mode) + */ + e_comp_canvas_norender_pop(); + EFFINF("Rotation Effect Start", NULL, NULL); effect->running = EINA_TRUE; @@ -713,6 +718,12 @@ _rotation_effect_animator_begin_prepare(Rotation_Effect *effect, E_Desk *desk) /* add hwc override */ e_comp_override_add(); + + /* block updating canvas (compositing mode) to avoid showing rotated window that + * could be outputted to the screen before starting rotation effect. + * it will be unset when the rotation effect starts. + */ + e_comp_canvas_norender_push(); } static void