tbm_bo: add get_from_hal_surface flag at tbm_bo 69/259569/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 10 Jun 2021 00:36:08 +0000 (09:36 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 10 Jun 2021 00:39:08 +0000 (09:39 +0900)
commit08e8584d49e308eb667d79119fde948721449d57
treef723e72b3f9fde60ca0befe00c59244ae7a88cc5
parent3bdb129469c1aed7b3a7fafe54a4aa031084b0fa
tbm_bo: add get_from_hal_surface flag at tbm_bo

The bo_data has to be freed at hal backend when
the get_from_hal_surface flag at tbm_bo is set.
Otherwise, the bo_data is freed at libtbm.
hal_tbm_surface has to deal with the life-cycle
of the hal_tbm_bo created by hal_tbm_surface.

Change-Id: I9342e5990796543bf6cf4a366fce6753a279f1e2
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
src/tbm_bo.c
src/tbm_bufmgr_int.h