diff options
author | Wonsik Kim <wonsik@google.com> | 2014-03-21 10:46:24 +0900 |
---|---|---|
committer | Wonsik Kim <wonsik@google.com> | 2014-03-24 15:44:05 +0900 |
commit | 0ec54e156bed93d59900b742c8e9adcfaee90612 (patch) | |
tree | 322bb2da5f2808b230b20ccb515ffa2359459396 /libs/gui | |
parent | 41d2f80739700a56fd6a670923a2966add8dae61 (diff) | |
download | frameworks_native-0ec54e156bed93d59900b742c8e9adcfaee90612.zip frameworks_native-0ec54e156bed93d59900b742c8e9adcfaee90612.tar.gz frameworks_native-0ec54e156bed93d59900b742c8e9adcfaee90612.tar.bz2 |
Declare ownership of native_handle_t object
Change-Id: I4e21ff8ea76cfafce943dc059c8f72b42397980e
Diffstat (limited to 'libs/gui')
-rw-r--r-- | libs/gui/IGraphicBufferConsumer.cpp | 2 | ||||
-rw-r--r-- | libs/gui/IGraphicBufferProducer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/IGraphicBufferConsumer.cpp b/libs/gui/IGraphicBufferConsumer.cpp index 3598a86..d3dffdd 100644 --- a/libs/gui/IGraphicBufferConsumer.cpp +++ b/libs/gui/IGraphicBufferConsumer.cpp @@ -392,7 +392,7 @@ public: } sp<NativeHandle> stream; if (reply.readInt32()) { - stream = NativeHandle::create(reply.readNativeHandle()); + stream = NativeHandle::create(reply.readNativeHandle(), true); } return stream; } diff --git a/libs/gui/IGraphicBufferProducer.cpp b/libs/gui/IGraphicBufferProducer.cpp index 1d4ec1c..7c50315 100644 --- a/libs/gui/IGraphicBufferProducer.cpp +++ b/libs/gui/IGraphicBufferProducer.cpp @@ -329,7 +329,7 @@ status_t BnGraphicBufferProducer::onTransact( CHECK_INTERFACE(IGraphicBufferProducer, data, reply); sp<NativeHandle> stream; if (data.readInt32()) { - stream = NativeHandle::create(data.readNativeHandle()); + stream = NativeHandle::create(data.readNativeHandle(), true); } status_t result = setSidebandStream(stream); reply->writeInt32(result); |