Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 738f756b authored by Arun Kumar K.R's avatar Arun Kumar K.R Committed by Steve Kondik
Browse files

SurfaceFlinger: update sourceTransform in hwc_layer_t

set the sourceTransform in hwc_layer_t to the bufferOrientation,
which will be used for setting the orientation on external display

CRs-fixed: 387357
Change-Id: I7ae6a818001eb41a9209dea166dc9232de182fe5
(cherry picked from commit 608db1fa7aa4dee3fc0359bd5686a74e2dfc9d40)
parent 5e76750f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -295,6 +295,9 @@ void Layer::setGeometry(hwc_layer_t* hwcl)
     */

    const Transform bufferOrientation(mCurrentTransform);
#ifdef QCOM_HARDWARE
    hwcl->sourceTransform = bufferOrientation.getOrientation();
#endif
    const Transform tr(mTransform * bufferOrientation);

    // this gives us only the "orientation" component of the transform