summaryrefslogtreecommitdiffstats
path: root/modules/gralloc/gralloc_priv.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-06-10 16:06:28 -0700
committerMathias Agopian <mathias@google.com>2009-06-10 16:06:28 -0700
commit72c8508db9c3895a34437a3e780b90ec43a920a2 (patch)
treeebcc85a29b0fdd0248f99d5c493c8d23d6dddc8c /modules/gralloc/gralloc_priv.h
parent5115665397e5f5be5a5d464bc22b70b023d243d9 (diff)
downloadhardware_libhardware-72c8508db9c3895a34437a3e780b90ec43a920a2.zip
hardware_libhardware-72c8508db9c3895a34437a3e780b90ec43a920a2.tar.gz
hardware_libhardware-72c8508db9c3895a34437a3e780b90ec43a920a2.tar.bz2
add an offset field to gralloc handles so the framebuffer can work with copybit
Diffstat (limited to 'modules/gralloc/gralloc_priv.h')
-rw-r--r--modules/gralloc/gralloc_priv.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/gralloc/gralloc_priv.h b/modules/gralloc/gralloc_priv.h
index 2aaf141..4d5afdc 100644
--- a/modules/gralloc/gralloc_priv.h
+++ b/modules/gralloc/gralloc_priv.h
@@ -82,18 +82,19 @@ struct private_handle_t : public native_handle
int magic;
int flags;
int size;
+ int offset; // used with copybit
// FIXME: the attributes below should be out-of-line
int base;
int lockState;
int writeOwner;
- static const int sNumInts = 6;
+ static const int sNumInts = 7;
static const int sNumFds = 1;
static const int sMagic = 0x3141592;
private_handle_t(int fd, int size, int flags) :
- fd(fd), magic(sMagic), flags(flags), size(size), base(0),
- lockState(0), writeOwner(0)
+ fd(fd), magic(sMagic), flags(flags), size(size), offset(0),
+ base(0), lockState(0), writeOwner(0)
{
version = sizeof(native_handle);
numInts = sNumInts;