Add tbm_bo_get_flags backend function 34/46534/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150826.015901 accepted/tizen/tv/20150826.015515 accepted/tizen/wearable/20150826.020120 submit/tizen/20150825.055649 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 19 Aug 2015 12:14:43 +0000 (21:14 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 21 Aug 2015 10:25:53 +0000 (19:25 +0900)
Change-Id: I198de4bd097a8cbaa95ab043ba46327b112c1364

packaging/libtbm-exynos4412.spec
src/tbm_bufmgr_exynos4412.c

index 01767a1..d44be04 100644 (file)
@@ -1,5 +1,5 @@
 Name:           libtbm-exynos4412
-Version:        1.0.9
+Version:        1.1.0
 Release:        1
 License:        MIT
 Summary:        Tizen Buffer Manager - exynos4412 backend
index bd86c1e..4c6d40f 100644 (file)
@@ -1821,6 +1821,18 @@ tbm_exynos4412_fd_to_handle(tbm_bufmgr bufmgr, tbm_fd fd, int device)
     return bo_handle;
 }
 
+int
+tbm_exynos4412_bo_get_flags (tbm_bo bo)
+{
+    EXYNOS4412_RETURN_VAL_IF_FAIL (bo != NULL, 0);
+
+    tbm_bo_exynos4412 bo_exynos4412;
+
+    bo_exynos4412 = (tbm_bo_exynos4412)tbm_backend_get_bo_priv(bo);
+    EXYNOS4412_RETURN_VAL_IF_FAIL (bo_exynos4412 != NULL, 0);
+
+    return bo_exynos4412->flags_tbm;
+}
 
 MODULEINITPPROTO (init_tbm_bufmgr_priv);
 
@@ -1903,6 +1915,7 @@ init_tbm_bufmgr_priv (tbm_bufmgr bufmgr, int fd)
     bufmgr_backend->surface_supported_format = tbm_exynos4412_surface_supported_format;
     bufmgr_backend->fd_to_handle = tbm_exynos4412_fd_to_handle;
     bufmgr_backend->surface_get_num_bos = tbm_exynos4412_surface_get_num_bos;
+    bufmgr_backend->bo_get_flags = tbm_exynos4412_bo_get_flags;
 
     if (bufmgr_exynos4412->use_dma_fence)
     {