summaryrefslogtreecommitdiffstats
path: root/libgralloc/framebuffer.cpp
diff options
context:
space:
mode:
authorRamkumar Radhakrishnan <ramkumar@codeaurora.org>2016-08-25 15:04:21 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-08-30 21:27:28 -0700
commit5353ccce11eedce467ab622b6d06263defe6a64f (patch)
tree274439640f774fe212f361155d9340f43d992ce1 /libgralloc/framebuffer.cpp
parent7b5fe87e3052fe6802e380c649d845b887eaa486 (diff)
downloadandroid_hardware_qcom_display-5353ccce11eedce467ab622b6d06263defe6a64f.tar.gz
android_hardware_qcom_display-5353ccce11eedce467ab622b6d06263defe6a64f.tar.bz2
android_hardware_qcom_display-5353ccce11eedce467ab622b6d06263defe6a64f.zip
hwc: Store real buffer resolution in private handle.
Add real_width and real_height in private_handle_t to store the actual buffer resolution without alignment that client asked to allocate. Change-Id: I28d757af4178f581e6a83dc06198106c85fc7262 CRs-Fixed: 1040942
Diffstat (limited to 'libgralloc/framebuffer.cpp')
-rw-r--r--libgralloc/framebuffer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp
index 5c297c1f8..94a72a757 100644
--- a/libgralloc/framebuffer.cpp
+++ b/libgralloc/framebuffer.cpp
@@ -352,8 +352,9 @@ int mapFrameBufferLocked(framebuffer_device_t *dev)
// Create framebuffer handle using the ION fd
module->framebuffer = new private_handle_t(fd, fbSize,
private_handle_t::PRIV_FLAGS_USES_ION,
- BUFFER_TYPE_UI,
- module->fbFormat, info.xres, info.yres);
+ BUFFER_TYPE_UI, module->fbFormat,
+ info.xres, info.yres,
+ info.xres, info.yres);
module->framebuffer->base = uint64_t(vaddr);
memset(vaddr, 0, fbSize);
//Enable vsync