SF: Disable transform hint when the layer uses getTransformToDisplayInverse flag

In some cases such as camera viewfinder, the app always submits buffer in one orientation and
aligns with the device orientation with by setting the getTransformToDisplayInverse flag. If
the device rotates, SF will send a transform hint to gl consumer which will rotate the
buffer. If the surface sets the getTransformToDisplayInverse flag we do not want to rotate the
buffer.

This change also adds effective_scaling_mode to winscope trace.

Bug: b/74400997

Test: rotate the device with open gl test app provided in bug
Test: open trace with winscope
Test: mmma frameworks/native/services/surfaceflinger/tests/ && \
mmma frameworks/native/libs/gui/tests/ && adb sync data && \
adb shell /data/nativetest64/libgui_test/libgui_test && \
adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest && \
adb shell /data/nativetest64/SurfaceFlinger_test/SurfaceFlinger_test && \
adb shell /data/nativetest64/SurfaceParcelable_test/SurfaceParcelable_test && \
echo "ALL TESTS PASSED"

Change-Id: Ibd181a4e8d2ec3a0ca9dc3c2900bb9dc2ac1ec0f
2 files changed