diff options
| author | Robert Carr <racarr@google.com> | 2016-09-07 14:12:44 -0700 | 
|---|---|---|
| committer | Robert Carr <racarr@google.com> | 2016-09-08 13:54:29 -0700 | 
| commit | 387838be955a44422509c2c7bc124327e9fe61d7 (patch) | |
| tree | 6b1d649eeb37bed946c55babc3d2bb07a58e97c9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
| parent | 735b9eca0f52fd27646ac7187bcebc56273bb771 (diff) | |
SurfaceView: Force surface disconnection before reuse.
Prior to N, if a client received the surfaceDestroyed callback
from their SurfaceView they could trust that the surface would not be
reused. Now that is not true in multiple scenarios. If a client fails
to shut down its EGL context then, we could end up in a situation where,
the client will never disconnect. Then when we reuse the same
underlying IGraphicBufferProducer for surfaceCreated next
the app will crash with a double connect error. There is no valid
use of the surface inbetween surfaceDestroyed and surfaceCreated,
so we just force the disconnection after surfaceDestroyed.
Bug: 30236166
Change-Id: I2e3e4b3176492dc0c2d46a59e0b5a781bf9bc356
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions
