diff options
author | chaviw <chaviw@google.com> | 2020-06-23 08:11:46 -0700 |
---|---|---|
committer | chaviw <chaviw@google.com> | 2020-06-23 08:36:16 -0700 |
commit | 355befde244080023631eba3f553471f05de6fd4 (patch) | |
tree | cce6923d3f6e85fb42cede18170213dc7c9f1d41 /rs/java/android/renderscript/Program.java | |
parent | fe913ac721f062cf7a3ffe505c4d2a21d35cc2ab (diff) |
Call finishDrawing and notify when Window is removed or hidden
There are cases where a sync transaction is called on a window that's
going to be removed or hidden. In that case, it will never get a
finishDrawing and possibly not get a prepareSurfaces call. Since we're
not really waiting for anything, we can call finishDrawing and
immediately call notifyBlastSyncTransaction.
This change also moves the blast sync timeout removal into
notifyBlastSyncTransaction in case there's another issue where
finishDrawing is called but not notifyBlastSyncTransaction. The reason
for this is the device can at least go back to a normal state instead of
permanently staying stuck.
Fixes: 159507259
Test: WindowOrganizerTests
Change-Id: If483e3769a98cc100c86893f2132aced5f064fe6
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions