OSDN Git Service

don't automatically unmap buffers when they're freed
authorMathias Agopian <mathias@google.com>
Wed, 15 Apr 2009 01:24:09 +0000 (18:24 -0700)
committerMathias 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

index 67febd8..abb8c96 100644 (file)
@@ -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);