OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
02afa28
)
Merge "libgui: Check result in hook_dequeueBuffer_DEPRECATED" into nyc-dev
author
Mike Stroyan
<stroyan@google.com>
Mon, 6 Jun 2016 16:29:41 +0000
(16:29 +0000)
committer
Android (Google) Code Review
<android-gerrit@google.com>
Mon, 6 Jun 2016 16:29:42 +0000
(16:29 +0000)
libs/gui/Surface.cpp
patch
|
blob
|
history
diff --git
a/libs/gui/Surface.cpp
b/libs/gui/Surface.cpp
index
6811269
..
9d130cd
100644
(file)
--- a/
libs/gui/Surface.cpp
+++ b/
libs/gui/Surface.cpp
@@
-162,6
+162,9
@@
int Surface::hook_dequeueBuffer_DEPRECATED(ANativeWindow* window,
ANativeWindowBuffer* buf;
int fenceFd = -1;
int result = c->dequeueBuffer(&buf, &fenceFd);
+ if (result != OK) {
+ return result;
+ }
sp<Fence> fence(new Fence(fenceFd));
int waitResult = fence->waitForever("dequeueBuffer_DEPRECATED");
if (waitResult != OK) {