diff options
author | 2017-03-30 16:37:19 -0700 | |
---|---|---|
committer | 2017-04-06 11:42:38 -0700 | |
commit | e1c599b52fcce94bd27ebbc4d74cd59c9e71b452 (patch) | |
tree | df4b3a3a154ecc3950d03ed37e912526fa6c6f6c /services/surfaceflinger/MessageQueue.cpp | |
parent | a5f61dd70ac151c8adbde20d3bc4cd7d27808d21 (diff) |
libgui: Normalize IDisplayEventConnection methods
This change modifies the IDisplayEventConnection API such that every
synchronous method returns a status_t (to be able to return transport
errors). This required changing getDataChannel to return its channel by
output parameter rather than return type.
Currently no more error messages are checked than before, but this will
both enable calling code to check error messages if it desires and,
more importantly, allow the Bp/Bn code to be semi-automatically
generated using SafeInterface.
Test: libgui_tests + manual testing
Change-Id: I8d5bc5ef0475cee07b638a97079b234f0384c022
Diffstat (limited to 'services/surfaceflinger/MessageQueue.cpp')
-rw-r--r-- | services/surfaceflinger/MessageQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/MessageQueue.cpp b/services/surfaceflinger/MessageQueue.cpp index debea58e55..6ef26fe3df 100644 --- a/services/surfaceflinger/MessageQueue.cpp +++ b/services/surfaceflinger/MessageQueue.cpp @@ -94,7 +94,7 @@ void MessageQueue::setEventThread(const sp<EventThread>& eventThread) { mEventThread = eventThread; mEvents = eventThread->createEventConnection(); - mEventTube = mEvents->getDataChannel(); + mEvents->getDataChannel(&mEventTube); mLooper->addFd(mEventTube->getFd(), 0, Looper::EVENT_INPUT, MessageQueue::cb_eventReceiver, this); } |