summaryrefslogtreecommitdiffstats
path: root/libgralloc/framebuffer.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-01 18:42:58 -0600
committerLinux Build Service Account <lnxbuild@localhost>2016-09-01 18:42:58 -0600
commit57aaa5e09827b47df67e08ec165173327a7e6ed8 (patch)
tree9322ba200099a7920bc2d97647489582b9877e10 /libgralloc/framebuffer.cpp
parent9cc01011e580a2a55ebabd39c62e042f3f9d5dde (diff)
parentbee9c1acdd3a6910d5f4e57d39c4fe4d0ea9909d (diff)
downloadhardware_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/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