From b88364eaa326f59704402b021d55334aaf64367b Mon Sep 17 00:00:00 2001 From: "Arun Kumar K.R" Date: Wed, 6 Apr 2011 18:30:28 -0700 Subject: [PATCH] hardware/msm7k: Remove ioctl call from getOrientation - The ioctl call from getOrientation is removed. - In gralloc use getOrientation instead of storing the orientation. Change-Id: Idb08568ff5d46ce99e0a9a8c6f492b90bb666f0c --- framebuffer.cpp | 5 +++-- gralloc_priv.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framebuffer.cpp b/framebuffer.cpp index b8484fa..4a4b403 100644 --- a/framebuffer.cpp +++ b/framebuffer.cpp @@ -315,10 +315,11 @@ static void *hdmi_ui_loop(void *ptr) break; } } - if(rot != m->currentOrientation) { + int currOrientation = 0; + pTemp->getOrientation(currOrientation); + if(rot != currOrientation) { pTemp->setParameter(OVERLAY_TRANSFORM, rot); - m->currentOrientation = rot; } EVEN_OUT(asX); EVEN_OUT(asY); diff --git a/gralloc_priv.h b/gralloc_priv.h index 49eae72..8ff2582 100644 --- a/gralloc_priv.h +++ b/gralloc_priv.h @@ -228,7 +228,6 @@ struct private_module_t { bool exitHDMIUILoop; float actionsafeWidthRatio; float actionsafeHeightRatio; - int currentOrientation; bool hdmiStateChanged; pthread_mutex_t overlayLock; pthread_cond_t overlayPost;