summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-07-08gralloc: Make sure several variables are not used uninitializedAndreas Schneider1-3/+3
2015-07-08gralloc: replace struct ion_handle with ion_user_handle_tRom Lemarchand1-3/+4
Replace struct ion_handle with ion_user_handle_t to match new kernel headers Change-Id: Iefff2036f01dccbd47f0f0e6eef09e804e1e2ea0
2015-07-07gralloc: use BGRA byte order for video encoder targetsGreg Hackmann1-5/+13
Encoder does not recognize RGBA byte order, so refuse to allocate if SW usage flags are set Bug: 10429036 Change-Id: I3b9d0e71566c3565068b7c38c4f9189f4bb93fd0 Signed-off-by: Greg Hackmann <ghackmann@google.com>
2015-07-07gralloc: read the screen res from the framebuffer modes listDima Zavin1-17/+56
Change-Id: Icd69c79b85ec5ce4a4ff444a98afc0da4e5c0a87 Signed-off-by: Dima Zavin <dima@android.com>
2015-07-07gralloc: fix struct private_module_t definition for C usageGreg Hackmann1-1/+1
Change-Id: I615294c1b2fcf2fd2a7dc465a4b8351f00c8003c Signed-off-by: Greg Hackmann <ghackmann@google.com>
2015-07-07gralloc: refcount private_module_tGreg Hackmann2-1/+15
gralloc_open() can be called multiple times in the same process, which led to the existing ion fd leaking on each open; the surviving fd also leaked on close. Refcount the private_module_t to prevent this. Bug: 13633155 Change-Id: I09ac8096fe0101b91b23e7c8d2ee9e11efe29b03 Signed-off-by: Greg Hackmann <ghackmann@google.com>
2015-07-07Remove #include <asm/page.h>.Elliott Hughes1-5/+0
Change-Id: I29a9f289cc053aaf017aa316bc9232885139e0e4
2015-07-07gralloc: use BGRA byte order for framebuffer targetGreg Hackmann1-0/+7
Bug: 10429036 Change-Id: Idac73fd588cca70e075c017af00dd590b14b0c7e Signed-off-by: Greg Hackmann <ghackmann@google.com>
2015-07-07gralloc: register buffers in allocColin Cross4-61/+7
gralloc_alloc was creating buffers with ion_alloc_fd, which results in a dmabuf but no ion handle. This makes it hard to track buffers that are never registered with another process, or ones that are unregistered from their process like the wallpaper. Call gralloc_register_buffer from inside alloc to convert the dmabufs to ion handles, and gralloc_unregister_buffer inside free. gralloc_register_buffer currently unnecissarily maps the buffer as well, which gralloc_lock will do as necessary, so remove the map. gralloc_unregister_buffer will unmap if necesssary, so remove the call to grallocUnmap in gralloc_free. That leaves no callers to grallocUnmap (and there weren't any callers to grallocMap), so remove them and gr.h. Change-Id: I959feb48e6899ba28028c2e17d304ddf76346fd3
2015-07-07Use 64B alignment for RGB buffersBartosz Szatkowski1-1/+2
Change-Id: Idf46c8552223a538ecf9a4bc3516b165275b2eab
2014-08-19Samsung Patch (05/27/2014) - RTM 1.00codewalker720-0/+252395
Change-Id: I013f933ac0a52c4cc1b5e5b550a92b06534a0a34
2014-08-19Initial empty repositoryDongjin Kim0-0/+0