diff options
author | Robert Carr <racarr@google.com> | 2019-04-11 13:01:31 -0700 |
---|---|---|
committer | Robert Carr <racarr@google.com> | 2019-04-11 13:12:21 -0700 |
commit | 412f356ec0d7aa00f38bbc13dd80ae5acca4f928 (patch) | |
tree | 49ede02f68112992e6ab745add53165c4f4b4612 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 8e3183e12657e05fc799a62b51828c20e43c0b43 (diff) |
More SurfaceAnimator lifetime fixes.
1. The last fix to Dimmer was insufficient, the mDimLayer in the context
of DimState() is not the mDimLayer that we return from DimAnimatable#getSurfaceControl.
Here we null the correct layer.
2. This bug is hard to fix without repro so we add some isValid checks preventing further crashes
at the cost of a few cycles and a code wart.
Test: Existing tests pass
Bug: 130315011
Bug: 130364451
Change-Id: I3d4d3e0e7110f943e5a2614e07a1f4ae85c2b3da
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions