summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-04-17 14:57:42 +0800
committerRiddle Hsu <riddlehsu@google.com>2019-04-24 23:57:46 +0800
commit7482626a2c86c1b6f47fe5cc15e68841f03dad00 (patch)
tree1294c8b65b42df36324ee124f7f0aa10bd144356 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentbd873544af972cd1e425039a3579b6b2d7b01b79 (diff)
Resolve size compatibility bounds by original display attributes
Previously, the rotation of bounds is simulated by swapping the width and height, and also adjust the insets in app bounds. But it is still not accurate enough because the decors can be moved or resized according to rotation. Now the activity bounds are computed as it is in a pseudo display that provides the same size and insets information as the original display where the activity launched. This change also handles a special case for task level letterboxing. The container bounds for activity is also calculated as the task, so the activity can always best fit in the parent when the orientation is changed. Fixes: 130417317 Bug: 112288258 Test: atest ActivityRecordTests TaskRecordTests Test: atest SizeCompatModeActivityControllerTest Test: Enable fully gestural navigation and launch camera. The restart button should not show after rotating screen. Change-Id: Ifbb31f9ee84723c85bd4cbc03abd8cdf70fee6af
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions