summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/EventThread.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2017-03-31 17:10:06 -0700
committer Dan Stoza <stoza@google.com> 2017-04-06 11:42:58 -0700
commit7d290174b08a56ae6bc6719bec58805ca38b348b (patch)
tree4a3df003f4d0df97560501713c3cb86d65713e33 /services/surfaceflinger/EventThread.cpp
parent27c8115510cebda13cbe24fd4caa946ea9c5003c (diff)
libgui: Make BitTube Parcelable and use unique_fd
This change completes the Parcelable interface for BitTube (it was semi-Parcelable before as it implemented writeToParcel, but this adds the complementary readFromParcel). It also changes the send and receive file descriptors from ints to android::base::unique_fds, which simplifies some of their lifecycle management. Finally, it changes the default constructor to leave the class uninitialized, adding a BitTube(BitTube::DefaultSize) constructor to replace that functionality (and paving the way for the ability to default-construct a BitTube prior to readFromParcel'ing into it). Test: m -j + manual testing Change-Id: Ib0cba4c7c443b449a9a1837f07f7334395d4f10d
Diffstat (limited to 'services/surfaceflinger/EventThread.cpp')
-rw-r--r--services/surfaceflinger/EventThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/EventThread.cpp b/services/surfaceflinger/EventThread.cpp
index 7e0506b00e..2d3515e8e6 100644
--- a/services/surfaceflinger/EventThread.cpp
+++ b/services/surfaceflinger/EventThread.cpp
@@ -389,7 +389,7 @@ void EventThread::dump(String8& result) const {
EventThread::Connection::Connection(
const sp<EventThread>& eventThread)
- : count(-1), mEventThread(eventThread), mChannel(new gui::BitTube())
+ : count(-1), mEventThread(eventThread), mChannel(new gui::BitTube(gui::BitTube::DefaultSize))
{
}