overlay: Swap flips on 90 only for older mdp version.
Older mdp rotator does 90 first and flip next, forcing HAL to swap flips, in presence of 90. Newer mdp does flip first and 90 next, owing to DMA pipe. (Also similar to GPU flip handling). So we can pass flips as-is. Change-Id: I379509a07e45966262005666e7727e7923079d3a
This commit is contained in:
@@ -670,8 +670,6 @@ static inline void updateSource(eTransform& orient, Whf& whf,
|
||||
Dim srcCrop(crop.left, crop.top,
|
||||
crop.right - crop.left,
|
||||
crop.bottom - crop.top);
|
||||
//getMdpOrient will switch the flips if the source is 90 rotated.
|
||||
//Clients in Android dont factor in 90 rotation while deciding the flip.
|
||||
orient = static_cast<eTransform>(ovutils::getMdpOrient(orient));
|
||||
preRotateSource(orient, whf, srcCrop);
|
||||
crop.left = srcCrop.x;
|
||||
|
||||
Reference in New Issue
Block a user