diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2016-09-01 18:42:58 -0600 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2016-09-01 18:42:58 -0600 |
commit | 57aaa5e09827b47df67e08ec165173327a7e6ed8 (patch) | |
tree | 9322ba200099a7920bc2d97647489582b9877e10 /libgralloc/gralloc_priv.h | |
parent | 9cc01011e580a2a55ebabd39c62e042f3f9d5dde (diff) | |
parent | bee9c1acdd3a6910d5f4e57d39c4fe4d0ea9909d (diff) | |
download | hardware_qcom_display-57aaa5e09827b47df67e08ec165173327a7e6ed8.tar.gz hardware_qcom_display-57aaa5e09827b47df67e08ec165173327a7e6ed8.tar.bz2 hardware_qcom_display-57aaa5e09827b47df67e08ec165173327a7e6ed8.zip |
Promotion of display.lnx.2.0-00048.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1040942 I28d757af4178f581e6a83dc06198106c85fc7262 hwc: Store real buffer resolution in private handle.
1040942 Ic4c03cc5779418959732332d26b8ecb59c2483b5 sdm: Add rect mapping and interface to store actual reso
Change-Id: I96c075e51d992f1db521b2f8649913c152439798
CRs-Fixed: 1040942
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(); |