e_mod_rotation: send early angle change evt at eval_fetch 46/218146/2
authorJuyeon Lee <juyeonne.lee@samsung.com>
Wed, 20 Nov 2019 03:55:36 +0000 (12:55 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Wed, 20 Nov 2019 04:49:17 +0000 (13:49 +0900)
commit39b2673fdd50b6dddf3f22d03dedef56b07effe9
tree27f0beb5aa29d08b8e1623b00b3513f3a9b9b74a
parentf28e5ed815c1c6f7abaaedaec997f651e74c00cc
e_mod_rotation: send early angle change evt at eval_fetch

the early angle change event is made only for landscape(90|270) client if it
dismatch with rot.curr.
rotation available/preferre request come serveral in sequence, than
apply last req.

with this commit(by calculating in eval_fetch time whether the early
 angle_change event is needed or not) the event flow is going to be changed like below.

condition: curr angle is 0
from
   S <- C   tizen_rotation@37.set_available_angles(2)
   S -> C   tizen_rotation@37.angle_change(2, 243) ====> Angle change 90
   S <- C   tizen_rotation@37.set_available_angles(10)
   S <- C   tizen_rotation@37.set_available_angles(11)
   S <- C   tizen_rotation@37.set_available_angles(15)
   S <- C   tizen_rotation@37.ack_angle_change(243)
   S -> C   tizen_rotation@37.angle_change(1, 245) ===> Angle change 0
   S <- C   tizen_rotation@37.ack_angle_change(245)

to
   S <- C   tizen_rotation@37.set_available_angles(2)
   S <- C   tizen_rotation@37.set_available_angles(10)
   S <- C   tizen_rotation@37.set_available_angles(11)
   S <- C   tizen_rotation@37.set_available_angles(15)

Change-Id: Ib8f03c9ce6c0ed3270e218133cdb6b0b818adc27
src/rotation/e_mod_rotation_wl.c