summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-09-01 18:30:45 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-09-01 14:29:07 +0000
commite3424aefa51d3e8587a90240099a937996c105ef (patch)
treec5e100bb5fda875d76b5ed303afab45ad9af505b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfaead856f4516301489661a2e9b8e175ad1a36a6 (diff)
Use orientation to determine size compat bounds
If a display is resized to different orientation, the mapping between rotation and orientation is also inverted. So it may be inaccurate to calculate compat bounds according to current rotation. While the given orientation is better because it is relative to the width and height. That makes sure either the requested orientation takes effect or just inherit parent's configuration. Also consider the following cases: - Display rotation changed but activity orientation is not changed. The display is forced rotated and the activity is fixed orientation. - Display orientation changed but rotation is not changed. Resize fixed rotation display between portrait and landscape. Fixes: 166822610 Test: SizeCompatTests#testFixedScreenBoundsWhenDisplaySizeChanged Change-Id: I329325c134f37e08ecdb6311bff5cd331e3bc7c3
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions