make sure to clear surface's buffers when they are allocated

This commit is contained in:
Mathias Agopian
2009-08-07 18:13:47 -07:00
parent 75cdfbb45d
commit e83629abb9

View File

@@ -329,6 +329,7 @@ try_ashmem:
hnd->base = int(base)+offset;
hnd->lockState = lockState;
*pHandle = hnd;
memset((void*)hnd->base, 0, size);
}
LOGE_IF(err, "gralloc failed err=%s", strerror(-err));