From 59751dbf7d8f12aeb5c4c07719b7dbbf1f9b5d4b Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 7 May 2010 15:58:44 -0700 Subject: SharedBufferStack now can grow up to 16 buffers. there is a new resize() api, which currently only allows growing. Change-Id: Ia37b81b73be466d2491ffed7f3a23cd8e113c6fe --- include/surfaceflinger/ISurface.h | 2 ++ include/surfaceflinger/Surface.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include/surfaceflinger') diff --git a/include/surfaceflinger/ISurface.h b/include/surfaceflinger/ISurface.h index 472f759..9476686 100644 --- a/include/surfaceflinger/ISurface.h +++ b/include/surfaceflinger/ISurface.h @@ -47,12 +47,14 @@ protected: POST_BUFFER, // one-way transaction CREATE_OVERLAY, REQUEST_BUFFER, + SET_BUFFER_COUNT, }; public: DECLARE_META_INTERFACE(Surface); virtual sp requestBuffer(int bufferIdx, int usage) = 0; + virtual status_t setBufferCount(int bufferCount) = 0; class BufferHeap { public: diff --git a/include/surfaceflinger/Surface.h b/include/surfaceflinger/Surface.h index 7ab3a00..973780f 100644 --- a/include/surfaceflinger/Surface.h +++ b/include/surfaceflinger/Surface.h @@ -217,6 +217,7 @@ private: int connect(int api); int disconnect(int api); int crop(Rect const* rect); + int setBufferCount(int bufferCount); /* * private stuff... -- cgit v1.1