diff options
author | Mathias Agopian <mathias@google.com> | 2009-06-24 16:54:44 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-06-24 20:36:52 -0700 |
commit | 689fa73c067e1618bbdb62f32c2a34750b8ec48b (patch) | |
tree | 6d870b55c36740a2aec2d8a098d30a67129779ba | |
parent | 31802ca9c030b8f9a137f32826e9c9a76d0d6e17 (diff) | |
download | hardware_libhardware-689fa73c067e1618bbdb62f32c2a34750b8ec48b.zip hardware_libhardware-689fa73c067e1618bbdb62f32c2a34750b8ec48b.tar.gz hardware_libhardware-689fa73c067e1618bbdb62f32c2a34750b8ec48b.tar.bz2 |
copybit now uses a native_handle_t* instead of a fd/offset
-rw-r--r-- | include/hardware/copybit.h | 8 | ||||
-rw-r--r-- | modules/gralloc/gralloc_priv.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/hardware/copybit.h b/include/hardware/copybit.h index 6eaa975..833aa32 100644 --- a/include/hardware/copybit.h +++ b/include/hardware/copybit.h @@ -103,12 +103,10 @@ struct copybit_image_t { uint32_t h; /* format COPYBIT_FORMAT_xxx */ int32_t format; - /* offset from base to first pixel */ - uint32_t offset; /* base of buffer with image */ - void *base; - /* file descriptor for image */ - int fd; + void *base; + /* handle to the image */ + native_handle_t* handle; }; /* Rectangle */ diff --git a/modules/gralloc/gralloc_priv.h b/modules/gralloc/gralloc_priv.h index 8adb4f4..7ec07ef 100644 --- a/modules/gralloc/gralloc_priv.h +++ b/modules/gralloc/gralloc_priv.h @@ -34,6 +34,8 @@ /*****************************************************************************/ +struct private_module_t; + inline size_t roundUpToPageSize(size_t x) { return (x + (PAGESIZE-1)) & ~(PAGESIZE-1); } |