summaryrefslogtreecommitdiffstats
path: root/include/surfaceflinger
diff options
context:
space:
mode:
authorNaomi Luis <nluis@codeaurora.org>2012-01-16 14:19:52 -0800
committerGiulio Cervera <giulio.cervera@gmail.com>2012-03-03 15:30:11 +0100
commit41edafd7fc00b3d5d45d4665b03ea5f04ef5fd6c (patch)
tree279fb1bc54d48c66f3b0fe8758530fc5fdde3605 /include/surfaceflinger
parent81b18090d1eae41aa73b760a02008448809b959d (diff)
downloadframeworks_base-41edafd7fc00b3d5d45d4665b03ea5f04ef5fd6c.zip
frameworks_base-41edafd7fc00b3d5d45d4665b03ea5f04ef5fd6c.tar.gz
frameworks_base-41edafd7fc00b3d5d45d4665b03ea5f04ef5fd6c.tar.bz2
SurfaceFlinger: Set the buffer size in the GraphicBufferAlloc
When setting the buffer size, store the required size, and allocate the buffer of the required size in GraphicBufferAlloc, instead of SurfaceTexture. We do this because SurfaceTexture does not always run in the server process space. GraphicBufferAlloc always runs in the server process.
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r--include/surfaceflinger/IGraphicBufferAlloc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/surfaceflinger/IGraphicBufferAlloc.h b/include/surfaceflinger/IGraphicBufferAlloc.h
index 7eadfd8..7856b7c 100644
--- a/include/surfaceflinger/IGraphicBufferAlloc.h
+++ b/include/surfaceflinger/IGraphicBufferAlloc.h
@@ -48,6 +48,9 @@ public:
/* Free the GraphicBuffer at the specified index */
virtual void freeGraphicBufferAtIndex(int bufIndex) = 0;
+
+ /* Sets the required size of the Graphic Buffers */
+ virtual void setGraphicBufferSize(int size) = 0;
#endif
};