Skip to content
Commit 161eaff0 authored by chaviw's avatar chaviw
Browse files

Remove duplicate coordinate rotation code for screenshots.

The assist screenshot code path request the screenshot from
DisplayContent. DC.screenshotDisplayLocked was rotating the coordinates
to compenstate for the screenshot always taken in default orientation.
However, SurfaceControl.screenshot already takes care of that so we
ended up rotating the frame twice and flipping 180 and 90 twice. This
caused the screenshot to get taken with a crop for portrait and the
orientation flipped.

Test: Assist screenshot is correct now
Fixes: 159229894
Change-Id: Ie24eca4dd62225d106dbeafd96afba15de9fd623
parent 85cac3bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment