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

Commit 4f2b42c0 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Surfaceflinger: Add Src orientation for the layer" into ics

parents cf44095d aecd4c49
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -44,7 +44,9 @@
#endif

#define DEBUG_RESIZE    0

#ifdef QCOM_HARDWARE
#define SHIFT_SRC_TRANSFORM 4
#endif

namespace android {

@@ -239,6 +241,12 @@ void Layer::setGeometry(hwc_layer_t* hwcl)
        hwcl->flags = HWC_SKIP_LAYER;
    } else {
        hwcl->transform = finalTransform;
#ifdef QCOM_HARDWARE
        //mBufferTransform will have the srcTransform
        //include src and final transform in the hwcl->transform
        hwcl->transform = (( bufferOrientation.getOrientation() <<
                                       SHIFT_SRC_TRANSFORM) | hwcl->transform);
#endif
    }

    if (isCropped()) {