OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee2c9d
)
Surface: cancel the dequeued buffer when requestBuffer fails
author
Jesse Hall
<jessehall@google.com>
Thu, 2 Oct 2014 18:09:03 +0000
(11:09 -0700)
committer
Jesse Hall
<jessehall@google.com>
Thu, 2 Oct 2014 18:16:19 +0000
(18:16 +0000)
Partial fix for bug:
17477219
Change-Id: Ibf5a9e26e02c4be8854925a77a70f5c9c7dcf6f2
libs/gui/Surface.cpp
patch
|
blob
|
history
diff --git
a/libs/gui/Surface.cpp
b/libs/gui/Surface.cpp
index
b56030e
..
0e2baa2
100644
(file)
--- a/
libs/gui/Surface.cpp
+++ b/
libs/gui/Surface.cpp
@@
-237,6
+237,7
@@
int Surface::dequeueBuffer(android_native_buffer_t** buffer, int* fenceFd) {
result = mGraphicBufferProducer->requestBuffer(buf, &gbuf);
if (result != NO_ERROR) {
ALOGE("dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: %d", result);
+ mGraphicBufferProducer->cancelBuffer(buf, fence);
return result;
}
}