commit | ce8e5df3c11616f3eb7867ce89558b530651166c | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Thu Apr 28 10:12:47 2016 -0700 |
committer | John Reck <jreck@google.com> | Thu Apr 28 10:12:47 2016 -0700 |
tree | bbbe0ef2e519bc4cab38c28135d738eef40a7faf | |
parent | 44e9c027958ef5d7f8c8a06137ff9832b43114fb [diff] |
Don't flatten nullptrs Bug: 28428970 BufferQueueProducer can return a nullptr for the GraphicBuffer if there's nothing queued, which IGraphicBufferProducer would attempt to flatten. It's useful to distinguish that there's nothing queued instead of just generic error, so fix IGraphicBufferProducer to handle null GraphicBuffers. Change-Id: I9e2b11e107e093d209a89a01d14feec3e885f268