diff options
author | Jeykumar Sankaran <jsanka@codeaurora.org> | 2013-02-20 18:32:01 -0800 |
---|---|---|
committer | Naseer Ahmed <naseer@codeaurora.org> | 2013-03-18 16:38:54 -0400 |
commit | c1f8682f7b5b390fd2f97f27f84ce2c6587eb052 (patch) | |
tree | d8a076096703b44ae7bcf078b99ca4d94a585252 /libgralloc/framebuffer.cpp | |
parent | 51e5ee4f1145aadf08228570d6eae4ca868ca1cd (diff) | |
download | android_hardware_qcom_display-c1f8682f7b5b390fd2f97f27f84ce2c6587eb052.tar.gz android_hardware_qcom_display-c1f8682f7b5b390fd2f97f27f84ce2c6587eb052.tar.bz2 android_hardware_qcom_display-c1f8682f7b5b390fd2f97f27f84ce2c6587eb052.zip |
display: Remove framebuffer HAL usage
This patch removes the usage of the framebuffer HAL which is
deprecated in JB MR1 onwards. The code is left for compatibility
such as conformance tests but it is unused for normal display
usage.
Change-Id: If98133bdaa759cdc41d4503ff695b225ee43cb6f
Conflicts:
libhwcomposer/hwc_utils.cpp
Diffstat (limited to 'libgralloc/framebuffer.cpp')
-rw-r--r-- | libgralloc/framebuffer.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp index cc16a5f1f..0335f5ef5 100644 --- a/libgralloc/framebuffer.cpp +++ b/libgralloc/framebuffer.cpp @@ -54,7 +54,6 @@ static inline int max(int a, int b) { enum { PAGE_FLIP = 0x00000001, - LOCKED = 0x00000002 }; struct fb_context_t { @@ -88,8 +87,8 @@ static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) private_module_t* m = reinterpret_cast<private_module_t*>(dev->common.module); struct mdp_display_commit prim_commit; + prim_commit.wait_for_finish = 1; memset(&prim_commit, 0, sizeof(struct mdp_display_commit)); - prim_commit.flags = MDP_DISPLAY_COMMIT_OVERLAY; if (ioctl(m->framebuffer->fd, MSMFB_DISPLAY_COMMIT, &prim_commit) == -1) { ALOGE("%s: MSMFB_DISPLAY_COMMIT for primary failed, str: %s", __FUNCTION__, strerror(errno)); @@ -326,12 +325,6 @@ int mapFrameBufferLocked(struct private_module_t* module) module->framebuffer->base = intptr_t(vaddr); memset(vaddr, 0, fbSize); module->currentOffset = 0; - module->fbPostDone = false; - pthread_mutex_init(&(module->fbPostLock), NULL); - pthread_cond_init(&(module->fbPostCond), NULL); - module->fbPanDone = false; - pthread_mutex_init(&(module->fbPanLock), NULL); - pthread_cond_init(&(module->fbPanCond), NULL); return 0; } |