Update ViewRootImpl#getBufferTransformHint to use display rotation

Updates ViewRootImpl#getBufferTransform hint to determine the transform hint based off display rotation instead of the transform hint set on the underlying SurfaceControl. This fixes an issue where getBufferTransformHint returns an incorrect transform hint because SurfaceFlinger's display information hasn't been updated with display rotation information yet.

Bug: 301238858
Test: VulkanPreTransformTest
Change-Id: Ib835a8cf793ad048297789222802d2d1677db3ce
2 files changed