Page MenuHomePhabricator

evas map: calc map geometry when it is out of screen
Needs ReviewPublic

Authored by kimcinoo on Thu, Nov 22, 9:23 PM.



The map geometry(>normal_geometry) is calculated only if
evas_render_updates_internal_loop calls evas_render_mapped as below.


-> evas_object_map_update
-> evas_object_map_update
-> _evas_map_calc_map_geometry

If the mapped object is not on screen, then evas_render_updates_internal_loop
does not call evas_render_mapped, because the mapped object is not active.

The mapped object is not active(i.e. is_active is 0) always because cache.clip
data including visilbe and geometry is not updated after the object goes out
of screen.

Usually the unmapped object updates its cache.clip data with updated geometry
even though it is out of screen as below.


-> evas_object_map_move_diff_set

So the mapped object geometry(>normal_geometry) should be updated in
evas_object_map_move_diff_set if it is out of screen.

cf. evas_object_clip_recalc_do is not correct place.

-> evas_object_recalc_clippees
-> evas_object_clip_recalc
-> evas_object_clip_recalc_do
Test Plan

Sample code

Diff Detail

rEFL core/efl
No Linters Available
No Unit Test Coverage
Build Status
Buildable 8241
Build 7525: arc lint + arc unit
kimcinoo created this revision.Thu, Nov 22, 9:23 PM
kimcinoo requested review of this revision.Thu, Nov 22, 9:23 PM
kimcinoo updated this revision to Diff 17548.Thu, Nov 22, 9:26 PM

Update comment

kimcinoo edited the test plan for this revision. (Show Details)Thu, Nov 22, 9:28 PM
This revision was not accepted when it landed; it landed in state Needs Review.Mon, Nov 26, 6:24 PM
This revision was automatically updated to reflect the committed changes.
Hermet reopened this revision.Mon, Nov 26, 6:27 PM
Hermet requested changes to this revision.Mon, Nov 26, 7:02 PM
  1. Can't figure out issue in your sample.
  2. If you say, map coordinates weren't updated properly before clip_recalc_do(), we can just update it's coordinates (without checking inactive statement) before that. But it must be updated when we call evas_object_map_set() or evas_object_map_eanble_set()

Need more clue for this issue why clip size is incorrect.


These coordinates values must be up to date already.

This revision now requires changes to proceed.Mon, Nov 26, 7:02 PM
kimcinoo requested review of this revision.EditedMon, Nov 26, 9:29 PM

The sample is using evas_map_util_object_move_sync_set.
evas_object_map_set and evas_object_map_eanble_set are called onces and are not used whenever target object moves.
IMO the commit message would be enough. The geometry is updated only evas_render_mapped
-> evas_object_map_update
-> evas_object_map_update
-> _evas_map_calc_map_geometry is called if evas_map_util_object_move_sync_set is TRUE.

kimcinoo updated this revision to Diff 17627.Mon, Nov 26, 9:47 PM

Check obj->map->>move_sync.enabled before doing everything

kimcinoo updated this revision to Diff 17643.Tue, Nov 27, 11:44 PM

Update map geometry on correct place.

kimcinoo updated this revision to Diff 17644.Tue, Nov 27, 11:51 PM

Follow naming convention.

kimcinoo edited the summary of this revision. (Show Details)Wed, Nov 28, 12:41 AM