summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-08-28 14:10:44 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-08-28 14:12:07 +0800
commitfaead856f4516301489661a2e9b8e175ad1a36a6 (patch)
tree0e3b422d03c3a24b4f492d678dad80b2e0cecd41 /rs/java/android/renderscript/ProgramStore.java
parent664cae5d9a8162004c25a28b64d59005e2538be1 (diff)
Clean up access of display content
- ActivityRecord and Task get their own display instead of from parent. Because the hierarchy should guarantee the display instances are the same. - Remove redundant getDisplay().mDisplayContent since there is no ActivityDisplay after hierarchy unifying. - Access mDisplayContent directly because WindowContainer#reparent, setParent, onDisplayChanged never pass null DisplayContent. Currently the only place that clears mDisplayContent is in Task#onParentChanged. So the nullity check of mDisplayContent only exists in Task or other level's onConfigurationChanged if it is called the first time when adding to parent without display. - The best practice of handling non-attached container might be to check at upper entry, e.g. ActivityRecord.isInStackLocked, or use WindowContainer#isAttached. Instead of checking the nullity of display content everywhere. Bug: 163976519 Test: WmTests Change-Id: Ibf6c1368cfeadcad63ad5040a6166d654b906275
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions