diff options
author | Andrii Kulian <akulian@google.com> | 2019-06-26 19:09:19 -0700 |
---|---|---|
committer | Andrii Kulian <akulian@google.com> | 2019-07-20 18:11:15 -0700 |
commit | 39f274421485f96f5ff5dc92d7e795432ad257f0 (patch) | |
tree | 43aa9137abb022408a668ffcc76fce241c5605a6 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 90407f306a16e3523e18bc721a77ba82b417267b (diff) |
Cleanup ActivityRecord#frontOfTask and its usage
The field caches the 'is this the root of the task' flag. However,
we need to re-compute this every time there is some movement in the
task, or if some activity finished. This approach is also
error-prone, since we need to remember to trigger this update.
This CL switches from caching this field to using a method to check
if an activity is the root when needed.
Bug: 137329632
Test: atest WmTests:TaskRecordTests
Test: atest CtsWindowManagerDeviceTestCases:IntentTests
Change-Id: I7d9115680f023d3d49b018140c6366873555c929
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions