Support both HDR and display-native screenshots.

Screen rotation should be display-native to round trip properly during
the animation, but other use-cases like recents will perform an
intermediate composite into SDR before being displayed, in which case an
HDR screenshot will tonemap better.

Bug: 242324609
Bug: 276812775
Test: Rotation animation
Test: Switch apps with recents
Change-Id: Idd25acea9ceffa19d7bf16b871132e87d16791d7
5 files changed