diff options
author | 2016-09-23 05:59:09 +0000 | |
---|---|---|
committer | 2016-09-23 05:59:10 +0000 | |
commit | 96fc72d19e17d6d6dae1f3bdaca888a2db658f77 (patch) | |
tree | 075e9b58258fe71bea64ac9bec41078f6ad578ba | |
parent | 95c48ed47c2de072697d98609d2575f3ac459eea (diff) | |
parent | 7407963cd42385ddb73d2acd1be72858d34bf242 (diff) |
Merge "Surface: Allow nullable IGBPs when unparceling a Surface"
-rw-r--r-- | libs/gui/Surface.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp index 08382908ba..d78a681a5b 100644 --- a/libs/gui/Surface.cpp +++ b/libs/gui/Surface.cpp @@ -1393,14 +1393,18 @@ status_t Surface::readFromParcel(const Parcel* parcel, bool nameAlreadyRead) { int isSingleBuffered; res = parcel->readInt32(&isSingleBuffered); if (res != OK) { + ALOGE("Can't read isSingleBuffered"); return res; } } sp<IBinder> binder; - res = parcel->readStrongBinder(&binder); - if (res != OK) return res; + res = parcel->readNullableStrongBinder(&binder); + if (res != OK) { + ALOGE("%s: Can't read strong binder", __FUNCTION__); + return res; + } graphicBufferProducer = interface_cast<IGraphicBufferProducer>(binder); |