diff options
author | Mathias Agopian <mathias@google.com> | 2009-06-10 16:06:28 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-06-10 16:06:28 -0700 |
commit | 72c8508db9c3895a34437a3e780b90ec43a920a2 (patch) | |
tree | ebcc85a29b0fdd0248f99d5c493c8d23d6dddc8c /modules/gralloc/gralloc.cpp | |
parent | 5115665397e5f5be5a5d464bc22b70b023d243d9 (diff) | |
download | hardware_libhardware-72c8508db9c3895a34437a3e780b90ec43a920a2.tar.gz hardware_libhardware-72c8508db9c3895a34437a3e780b90ec43a920a2.tar.bz2 hardware_libhardware-72c8508db9c3895a34437a3e780b90ec43a920a2.zip |
add an offset field to gralloc handles so the framebuffer can work with copybit
Diffstat (limited to 'modules/gralloc/gralloc.cpp')
-rw-r--r-- | modules/gralloc/gralloc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ static int gralloc_alloc_framebuffer_locked(alloc_device_t* dev, } hnd->base = vaddr; + hnd->offset = vaddr - intptr_t(m->framebuffer->base); *pHandle = hnd; return 0; |