HomePhabricator

evas: Fix layer usage count and deletion

Authored by Jean-Philippe Andre <jp.andre@samsung.com> on Mar 6 2017, 6:01 AM.

Description

evas: Fix layer usage count and deletion

When using smart objects (quite likely, isn't it?), the internal
layer usage count was not perfectly tracked. This was especially
true if layer_set() was called on a (top-level) smart object.
As a consequence, there could be no objects in the layer but the
usage would still be > 0. Thus, the layer was not deleted, not
removed from the inlist of layers, and efl_gfx_stack_above_get()
could return NULL as the layer above a certain object was empty.

Fixes T5201

Jean-Philippe Andre <jp.andre@samsung.com> committed rEFLaacd25ef6b2e: evas: Fix layer usage count and deletion (authored by Jean-Philippe Andre <jp.andre@samsung.com>).Mar 6 2017, 6:04 PM