projects
/
platform
/
core
/
uifw
/
libtbm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00cbf70
)
do not increase bo cnt of bufmgr if bo is resued (import, import_fd)
40/93240/1
author
Changyeon Lee
<cyeon.lee@samsung.com>
Fri, 21 Oct 2016 07:50:36 +0000
(16:50 +0900)
committer
Changyeon Lee
<cyeon.lee@samsung.com>
Fri, 21 Oct 2016 07:52:21 +0000
(16:52 +0900)
Change-Id: I16b90bcfda2187959ad5f5275e167d0b9a45a06e
src/tbm_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/tbm_bufmgr.c
b/src/tbm_bufmgr.c
index
c752af0
..
1fdbf18
100644
(file)
--- a/
src/tbm_bufmgr.c
+++ b/
src/tbm_bufmgr.c
@@
-919,8
+919,6
@@
tbm_bo_import(tbm_bufmgr bufmgr, unsigned int key)
return NULL;
}
- bufmgr->bo_cnt++;
-
bo->bufmgr = bufmgr;
bo_priv = bufmgr->backend->bo_import(bo, key);
@@
-945,6
+943,8
@@
tbm_bo_import(tbm_bufmgr bufmgr, unsigned int key)
}
}
+ bufmgr->bo_cnt++;
+
bo->ref_cnt = 1;
bo->priv = bo_priv;
@@
-992,8
+992,6
@@
tbm_bo_import_fd(tbm_bufmgr bufmgr, tbm_fd fd)
return NULL;
}
- bufmgr->bo_cnt++;
-
bo->bufmgr = bufmgr;
bo_priv = bufmgr->backend->bo_import_fd(bo, fd);
@@
-1018,6
+1016,8
@@
tbm_bo_import_fd(tbm_bufmgr bufmgr, tbm_fd fd)
}
}
+ bufmgr->bo_cnt++;
+
bo->ref_cnt = 1;
bo->priv = bo_priv;