summaryrefslogtreecommitdiffstats
path: root/include/surfaceflinger
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-05-07 15:58:44 -0700
committerMathias Agopian <mathias@google.com>2010-05-12 17:28:20 -0700
commit59751dbf7d8f12aeb5c4c07719b7dbbf1f9b5d4b (patch)
treea1f1d7119a8109d06cfc2f24b26284ff7627de7a /include/surfaceflinger
parent9f2c4fd9a14ea79e4cbbd3ab8925794711a6411c (diff)
downloadframeworks_base-59751dbf7d8f12aeb5c4c07719b7dbbf1f9b5d4b.zip
frameworks_base-59751dbf7d8f12aeb5c4c07719b7dbbf1f9b5d4b.tar.gz
frameworks_base-59751dbf7d8f12aeb5c4c07719b7dbbf1f9b5d4b.tar.bz2
SharedBufferStack now can grow up to 16 buffers.
there is a new resize() api, which currently only allows growing. Change-Id: Ia37b81b73be466d2491ffed7f3a23cd8e113c6fe
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r--include/surfaceflinger/ISurface.h2
-rw-r--r--include/surfaceflinger/Surface.h1
2 files changed, 3 insertions, 0 deletions
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<GraphicBuffer> 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...