add an offset field to gralloc handles so the framebuffer can work with copybit

This commit is contained in:
Mathias Agopian
2009-06-10 16:06:28 -07:00
parent 5115665397
commit 72c8508db9
2 changed files with 5 additions and 3 deletions

View File

@@ -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;