commit | 8e19c2e97e11505ee2ecf336275fd956f2ccfa22 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed Aug 10 17:35:09 2011 -0700 |
committer | Mathias Agopian <mathias@google.com> | Wed Aug 10 17:35:52 2011 -0700 |
tree | a89be6f4e1ae6f163c536fb46fa90ad81880593f | |
parent | 2560d14ce8e38984032d999e3fdf8da9a47baf3c [diff] |
fix a crasher in SurfaceTexture::updateTexImage() we now make sure to drain the buffer queue on disconnect. this happens only when in synchrnous mode. in async mode we clear all buffers except the head of the queue. for extra safety we also catch the null pointer in updateTexImage (which should never happen) and return an error. Bug: 5111008 Change-Id: I5174a6ecbb0de641c6510ef56a611cbb4e9e1f59