commit | bc5f06bdaa95da7e2a94d8827fffbadad7bc813d | [log] [tgz] |
---|---|---|
author | Stan Iliev <stani@google.com> | Tue Mar 26 15:14:34 2019 -0400 |
committer | Stan Iliev <stani@google.com> | Tue Mar 26 15:14:34 2019 -0400 |
tree | f1504301fc81b3680363f719e8d3903b27740181 | |
parent | dece92b28744012f6db87f5100b511cd459218a1 [diff] |
Fix crash after dequeueNativeBuffer fails Anytime dequeueNativeBuffer fails, it sets mDequeuedIndex to -1. This is causing a crash latter, when getCurrentSkSurface tries to index mNativeBuffers[mDequeuedIndex]. This CL removes mDequeuedIndex and improves Vulkan swapchain error handling. Test: Ran Camera app Bug: 129024275 Change-Id: Ieeb685c3a1b33f23ce2334d286199a44ace53165