summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2020-06-23 08:11:46 -0700
committerchaviw <chaviw@google.com>2020-06-23 08:36:16 -0700
commit355befde244080023631eba3f553471f05de6fd4 (patch)
treecce6923d3f6e85fb42cede18170213dc7c9f1d41 /rs/java/android/renderscript/Program.java
parentfe913ac721f062cf7a3ffe505c4d2a21d35cc2ab (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