am 50ef8562: Merge "GraphicProducerWrapper may return false transact status"

* commit '50ef8562fe7289495ad8592226f3c4d546119892':
  GraphicProducerWrapper may return false transact status
This commit is contained in:
Jesse Hall 2014-03-28 08:50:09 +00:00 committed by Android Git Automerger
commit 1b7512036f

View File

@ -2641,7 +2641,7 @@ class GraphicProducerWrapper : public BBinder, public MessageHandler {
looper->sendMessage(this, Message(MSG_API_CALL)); looper->sendMessage(this, Message(MSG_API_CALL));
barrier.wait(); barrier.wait();
} }
return NO_ERROR; return result;
} }
/* /*
@ -2651,7 +2651,7 @@ class GraphicProducerWrapper : public BBinder, public MessageHandler {
virtual void handleMessage(const Message& message) { virtual void handleMessage(const Message& message) {
android_atomic_release_load(&memoryBarrier); android_atomic_release_load(&memoryBarrier);
if (message.what == MSG_API_CALL) { if (message.what == MSG_API_CALL) {
impl->asBinder()->transact(code, data[0], reply); result = impl->asBinder()->transact(code, data[0], reply);
barrier.open(); barrier.open();
} else if (message.what == MSG_EXIT) { } else if (message.what == MSG_EXIT) {
exitRequested = true; exitRequested = true;