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:
parent
218ece992e
commit
b88364eaa3
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user