diff options
author | Robert Carr <racarr@google.com> | 2018-04-16 11:09:49 -0700 |
---|---|---|
committer | Robert Carr <racarr@google.com> | 2018-04-16 11:09:49 -0700 |
commit | 6858bb9ab1e867245370a8edf9e348ddc5ceec31 (patch) | |
tree | ded0bd8d8825910d4f249535fa71ae146f89c862 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 8ec69c71a73f00b7900ae35cd7e40e4c12ab8af4 (diff) |
ViewRoot: Ensure we release surface from setWindowStopped.
Otherwise, we may attempt to reinitialize the ThreadedRenderer with
a Surface which is not actually valid, e.g. from handleWindowFocusChanged.
Entering a code path where the threaded renderer does not heed the
stopped signal. This change ensures isValid returns false when the Surface
is not valid preventing us from calling initialize/initializeIfNeeded, or
udpateSurface. Unlike a previous iteration of this CL, we take care to do so
after invoking the WindowStopped callbacks so that SurfaceView has
a chance to tear down.
Test: go/wm-smoke. More extensive manual testing.
Bug: 62536731
Change-Id: If5e51f8aef7957ad87a23015fe100095f9502bc9
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions