am 8619132f
: am 74efd6e6
: am f05ef4e5
: Merge "Surface: cancel the dequeued buffer when requestBuffer fails" into lmp-dev
* commit '8619132f167afab3775315acdf6e7097fff41a91': Surface: cancel the dequeued buffer when requestBuffer fails
This commit is contained in:
commit
6051dc2fcc
@ -237,6 +237,7 @@ int Surface::dequeueBuffer(android_native_buffer_t** buffer, int* fenceFd) {
|
|||||||
result = mGraphicBufferProducer->requestBuffer(buf, &gbuf);
|
result = mGraphicBufferProducer->requestBuffer(buf, &gbuf);
|
||||||
if (result != NO_ERROR) {
|
if (result != NO_ERROR) {
|
||||||
ALOGE("dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: %d", result);
|
ALOGE("dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: %d", result);
|
||||||
|
mGraphicBufferProducer->cancelBuffer(buf, fence);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user