tbm_module: add tbm_backend_surface_data structure 93/260293/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 22 Jun 2021 01:10:51 +0000 (10:10 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 22 Jun 2021 02:13:12 +0000 (11:13 +0900)
The tbm_backend_surface_data is a resource information from HAL-TBM.

Change-Id: Iec3dfc8630dd0e2059a64d22e53c9edb91cb570d

src/tbm_module.h

index 536997e..b85b855 100644 (file)
@@ -68,6 +68,11 @@ typedef struct _tbm_module {
        hal_tbm_bufmgr           *hal_bufmgr;           /* hal-api-tbm bufmgr */
 } tbm_module;
 
+typedef struct _tbm_backend_surface_data {
+       tbm_module *module;
+       hal_tbm_surface *hal_surface;
+} tbm_backend_surface_data;
+
 /* tbm_module functions */
 tbm_module *tbm_module_load(int fd);
 void        tbm_module_unload(tbm_module *module);
@@ -92,4 +97,4 @@ tbm_error_e   tbm_module_bo_unlock(tbm_module *module, tbm_bo bo, tbm_backend_bo
 tbm_fd        tbm_module_bo_export_fd(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, tbm_error_e *error);
 tbm_key       tbm_module_bo_export_key(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, tbm_error_e *error);
 
-#endif // _TBM_MODULE_H_
\ No newline at end of file
+#endif // _TBM_MODULE_H_