summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-03-24 23:10:48 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-03-25 17:34:20 +0800
commitdf46fd52f90e70e07a3bc16adda158381f339d50 (patch)
tree738aa49e986959c82370b70c15d0f395941e87c6 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9c1d00870e56fbc6b6d442ed6dd408702521894a (diff)
Make child window inherit the scale of parent
The child window computes its layout in parent's frame. If parent frame is scaled, the position and size of child window is already based on parent. And the child surface also has the same scale from parent surface. This change makes mGlobalScale of child window to 1. And use the unscaled containing frame display frame of parent to apply gravity, so the child window can fit in the scaled content of parent window. Bug: 182362657 Test: atest WindowStateTests#testCompatOverrideScale Change-Id: Ie8b9fabcfbccb63f54d51bdd55b23f835151202d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions