commit | 72c8508db9c3895a34437a3e780b90ec43a920a2 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed Jun 10 16:06:28 2009 -0700 |
committer | Mathias Agopian <mathias@google.com> | Wed Jun 10 16:06:28 2009 -0700 |
tree | ebcc85a29b0fdd0248f99d5c493c8d23d6dddc8c | |
parent | 5115665397e5f5be5a5d464bc22b70b023d243d9 [diff] [blame] |
add an offset field to gralloc handles so the framebuffer can work with copybit
diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp index 5a38b33..6ec65e9 100644 --- a/modules/gralloc/gralloc.cpp +++ b/modules/gralloc/gralloc.cpp
@@ -147,6 +147,7 @@ } hnd->base = vaddr; + hnd->offset = vaddr - intptr_t(m->framebuffer->base); *pHandle = hnd; return 0;