diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-04-09 14:51:48 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-04-10 07:35:54 -0700 |
commit | 544f89aece46e8f4bbe4eed93116c8736e68ac07 (patch) | |
tree | 87969a0b012a964d47d87d7a10d7042e52ad51d7 /include | |
parent | c70e89e2a024645d425b49db2bbf3f20ed68e518 (diff) | |
download | frameworks_base-544f89aece46e8f4bbe4eed93116c8736e68ac07.zip frameworks_base-544f89aece46e8f4bbe4eed93116c8736e68ac07.tar.gz frameworks_base-544f89aece46e8f4bbe4eed93116c8736e68ac07.tar.bz2 |
Update SurfaceTexture interface for forward compatibility
Change-Id: I32d224428c0127800714a976b4d7bb68cc7c2464
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/SurfaceTexture.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h index a8c7672..511b3ec 100644 --- a/include/gui/SurfaceTexture.h +++ b/include/gui/SurfaceTexture.h @@ -38,6 +38,12 @@ namespace android { class IGraphicBufferAlloc; class String8; +class BufferQueue : public RefBase { +public: + BufferQueue(bool allowSynchronousMode) {}; + status_t setBufferCount(int bufferCount) { return 0; } +}; + class SurfaceTexture : public BnSurfaceTexture { public: enum { MIN_UNDEQUEUED_BUFFERS = 2 }; @@ -69,7 +75,8 @@ public: // fences should be used to synchronize access to buffers if that behavior // is enabled at compile-time. SurfaceTexture(GLuint tex, bool allowSynchronousMode = true, - GLenum texTarget = GL_TEXTURE_EXTERNAL_OES, bool useFenceSync = true); + GLenum texTarget = GL_TEXTURE_EXTERNAL_OES, bool useFenceSync = true, + const sp<BufferQueue> &bufferQueue = 0); virtual ~SurfaceTexture(); |