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
This commit is contained in:
Arun Kumar K.R 2011-04-06 18:30:28 -07:00 committed by Linux Build Service Account
parent 218ece992e
commit b88364eaa3
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;