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
de3c0ac14e
commit
1b5cb629f4
@ -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);
|
||||
|
@ -235,7 +235,6 @@ struct private_module_t {
|
||||
bool exitHDMIUILoop;
|
||||
float actionsafeWidthRatio;
|
||||
float actionsafeHeightRatio;
|
||||
int currentOrientation;
|
||||
bool hdmiStateChanged;
|
||||
pthread_mutex_t overlayLock;
|
||||
pthread_cond_t overlayPost;
|
||||
|
@ -1109,14 +1109,8 @@ bool OverlayControlChannel::getPosition(int& x, int& y,
|
||||
bool OverlayControlChannel::getOrientation(int& orientation) const {
|
||||
if (!isChannelUP())
|
||||
return false;
|
||||
|
||||
mdp_overlay ov;
|
||||
ov.id = mOVInfo.id;
|
||||
if (ioctl(mFD, MSMFB_OVERLAY_GET, &ov)) {
|
||||
reportError("getOrientation, overlay GET failed");
|
||||
return false;
|
||||
}
|
||||
orientation = ov.user_data[0];
|
||||
// mOVInfo has the current orientation
|
||||
orientation = mOVInfo.user_data[0];
|
||||
return true;
|
||||
}
|
||||
bool OverlayControlChannel::getOvSessionID(int& sessionID) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user