OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f14fe0
)
don't automatically unmap buffers when they're freed
author
Mathias Agopian
<mathias@google.com>
Wed, 15 Apr 2009 01:24:09 +0000
(18:24 -0700)
committer
Mathias Agopian
<mathias@google.com>
Wed, 15 Apr 2009 01:24:09 +0000
(18:24 -0700)
this is in preparation to an api change wrt gralloc map/unmap
modules/gralloc/gralloc.cpp
patch
|
blob
|
history
diff --git
a/modules/gralloc/gralloc.cpp
b/modules/gralloc/gralloc.cpp
index
67febd8
..
abb8c96
100644
(file)
--- a/
modules/gralloc/gralloc.cpp
+++ b/
modules/gralloc/gralloc.cpp
@@
-260,8
+260,8
@@
static int gralloc_free(alloc_device_t* dev,
}
if (hnd->base) {
- LOGW("
Freeing mapped handle %p", hnd
);
- gralloc_unmap((gralloc_module_t*) dev->common.module, handle);
+ LOGW("
handle %p still mapped at %p", hnd, hnd->base
);
+
//
gralloc_unmap((gralloc_module_t*) dev->common.module, handle);
}
close(hnd->fd);