summaryrefslogtreecommitdiff
path: root/libs/gui/Surface.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2016-09-23 05:59:09 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-09-23 05:59:10 +0000
commit96fc72d19e17d6d6dae1f3bdaca888a2db658f77 (patch)
tree075e9b58258fe71bea64ac9bec41078f6ad578ba /libs/gui/Surface.cpp
parent95c48ed47c2de072697d98609d2575f3ac459eea (diff)
parent7407963cd42385ddb73d2acd1be72858d34bf242 (diff)
Merge "Surface: Allow nullable IGBPs when unparceling a Surface"
Diffstat (limited to 'libs/gui/Surface.cpp')
-rw-r--r--libs/gui/Surface.cpp8
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);