diff options
author | Dan Stoza <stoza@google.com> | 2015-04-27 11:06:01 -0700 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2015-04-27 11:45:58 -0700 |
commit | d9c4971da2f2c4f980a748006bd40469c3332a13 (patch) | |
tree | 8b8b09aa864be49e6d3783e0c528babede21a808 /include/gui | |
parent | 63a0f428230208b9f3601eb7c99a08100c6f3a0b (diff) | |
download | frameworks_native-d9c4971da2f2c4f980a748006bd40469c3332a13.zip frameworks_native-d9c4971da2f2c4f980a748006bd40469c3332a13.tar.gz frameworks_native-d9c4971da2f2c4f980a748006bd40469c3332a13.tar.bz2 |
libgui: Change detachNextBuffer to return sp<GB>
Changes Surface::detachNextBuffer to return an sp<GraphicBuffer>
instead of an ANativeWindowBuffer* to ensure that reference counting
works correctly.
Bug: 20092217
Change-Id: I3979ea6121aaf14845f0554477b778770413581e
(cherry picked from commit 8b2daa3ca29492b181fb67840640d771c4a2b3ac)
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/Surface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gui/Surface.h b/include/gui/Surface.h index a9f78cf..fd6d48c 100644 --- a/include/gui/Surface.h +++ b/include/gui/Surface.h @@ -179,7 +179,7 @@ public: virtual int unlockAndPost(); virtual int connect(int api, const sp<IProducerListener>& listener); - virtual int detachNextBuffer(ANativeWindowBuffer** outBuffer, + virtual int detachNextBuffer(sp<GraphicBuffer>* outBuffer, sp<Fence>* outFence); virtual int attachBuffer(ANativeWindowBuffer*); |