diff options
Diffstat (limited to 'libgralloc/gralloc_priv.h')
-rw-r--r-- | libgralloc/gralloc_priv.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libgralloc/gralloc_priv.h b/libgralloc/gralloc_priv.h index 7a5fc845a..4aa47541b 100644 --- a/libgralloc/gralloc_priv.h +++ b/libgralloc/gralloc_priv.h @@ -222,8 +222,10 @@ struct private_handle_t : public native_handle { // The gpu address mapped into the mmu. uint64_t gpuaddr __attribute__((aligned(8))); int format; - int width; - int height; + int width; // specifies aligned width + int height; // specifies aligned height + int real_width; + int real_height; uint64_t base_metadata __attribute__((aligned(8))); #ifdef __cplusplus @@ -235,13 +237,14 @@ struct private_handle_t : public native_handle { static const int sMagic = 'gmsm'; private_handle_t(int fd, unsigned int size, int flags, int bufferType, - int format, int width, int height, int eFd = -1, + int format, int aligned_width, int aligned_height, + int width, int height, int eFd = -1, unsigned int eOffset = 0, uint64_t eBase = 0) : fd(fd), fd_metadata(eFd), magic(sMagic), flags(flags), size(size), offset(0), bufferType(bufferType), base(0), offset_metadata(eOffset), gpuaddr(0), - format(format), width(width), height(height), - base_metadata(eBase) + format(format), width(aligned_width), height(aligned_height), + real_width(width), real_height(height), base_metadata(eBase) { version = (int) sizeof(native_handle); numInts = sNumInts(); |