commit | e83629abb995cfdc49c0cd2ced2456c8eb41e73e | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Fri Aug 07 18:13:47 2009 -0700 |
committer | Mathias Agopian <mathias@google.com> | Fri Aug 07 18:13:47 2009 -0700 |
tree | 862648893145f3a895cd95af0c1357cc0ac6a10c | |
parent | 75cdfbb45d3d3fe60ed029178a14e3994ed8107f [diff] [blame] |
make sure to clear surface's buffers when they are allocated
diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp index 4eb9317..54aa64c 100644 --- a/modules/gralloc/gralloc.cpp +++ b/modules/gralloc/gralloc.cpp
@@ -329,6 +329,7 @@ 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));