summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-03-26 00:26:54 +0800
committerRiddle Hsu <riddlehsu@google.com>2019-03-28 15:28:35 +0800
commit9ad178510696387adc60a51a3a5dc4ce350200e5 (patch)
tree30268a005ea7af3ab7f141280e595191c1e3bc27 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentaecff3d7c4cb910e6ab95849d2d5def121b0469f (diff)
Correct size compat mode condition of aspect ratio
This fixes the case: when both min, max aspect ratio are set and the current aspect ratio reaches the max, and the size doesn't fill the parent, it will always be size compact mode. By filtering out the simple conditions first, the checking of fixed aspect ratio only applies to at least one side matches parent, that also makes the logic better understood. Bug: 112288258 Test: atest ActivityRecordTests# \ testSizeCompatMode_FixedAspectRatioBoundsWithDecor Change-Id: I82900ac940bf31c3ac2b87f7b133ba98aa2afe99
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions