summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-04-07 22:12:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-07 22:12:33 +0000
commit6b4f28a7930c115f4b9e0d4fdfcd41b3bb58bf58 (patch)
treeb9771439dc98404a5750e4745002b93272876985 /include
parent6d9e3dc5ca8e519218053f3f2f0e5068c835aba9 (diff)
parenta53e955ad882793bb6fea00d4d110a3d8878ab57 (diff)
downloadframeworks_native-6b4f28a7930c115f4b9e0d4fdfcd41b3bb58bf58.zip
frameworks_native-6b4f28a7930c115f4b9e0d4fdfcd41b3bb58bf58.tar.gz
frameworks_native-6b4f28a7930c115f4b9e0d4fdfcd41b3bb58bf58.tar.bz2
am a53e955a: Merge "libgui: Plumb attach/detach through Surface" into stage-aosp-master
* commit 'a53e955ad882793bb6fea00d4d110a3d8878ab57': libgui: Plumb attach/detach through Surface
Diffstat (limited to 'include')
-rw-r--r--include/gui/Surface.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gui/Surface.h b/include/gui/Surface.h
index 40e2fc1..e973483 100644
--- a/include/gui/Surface.h
+++ b/include/gui/Surface.h
@@ -158,7 +158,6 @@ protected:
virtual int lockBuffer_DEPRECATED(ANativeWindowBuffer* buffer);
- virtual int connect(int api, const sp<IProducerListener>& listener);
virtual int connect(int api);
virtual int disconnect(int api);
virtual int setBufferCount(int bufferCount);
@@ -177,6 +176,11 @@ public:
virtual int lock(ANativeWindow_Buffer* outBuffer, ARect* inOutDirtyBounds);
virtual int unlockAndPost();
+ virtual int connect(int api, const sp<IProducerListener>& listener);
+ virtual int detachNextBuffer(ANativeWindowBuffer** outBuffer,
+ sp<Fence>* outFence);
+ virtual int attachBuffer(ANativeWindowBuffer*);
+
protected:
enum { NUM_BUFFER_SLOTS = BufferQueue::NUM_BUFFER_SLOTS };
enum { DEFAULT_FORMAT = PIXEL_FORMAT_RGBA_8888 };