diff options
author | Daniel Lam <dalam@google.com> | 2012-01-30 15:51:27 -0800 |
---|---|---|
committer | Daniel Lam <dalam@google.com> | 2012-02-09 16:16:51 -0800 |
commit | f7c761e5d31146a1fbd2a51d9adfe17cc61ad4c1 (patch) | |
tree | 7a07a63b0c5d1565b66ba2abb1d46b0b90000258 /include | |
parent | 4f0106cca0c40cd506367c894436f91c4920a5e1 (diff) | |
download | frameworks_base-f7c761e5d31146a1fbd2a51d9adfe17cc61ad4c1.zip frameworks_base-f7c761e5d31146a1fbd2a51d9adfe17cc61ad4c1.tar.gz frameworks_base-f7c761e5d31146a1fbd2a51d9adfe17cc61ad4c1.tar.bz2 |
Refactored query function from SurfaceTexture into BufferQueue
Change-Id: Id1cb6cc38d01edb4fcfcad867c5a7693bdcc3ab1
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/BufferQueue.h | 2 | ||||
-rw-r--r-- | include/gui/SurfaceTexture.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/gui/BufferQueue.h b/include/gui/BufferQueue.h index 991a181..ae99160 100644 --- a/include/gui/BufferQueue.h +++ b/include/gui/BufferQueue.h @@ -60,6 +60,8 @@ public: BufferQueue(bool allowSynchronousMode = true); virtual ~BufferQueue(); + virtual int query(int what, int* value); + // setBufferCount updates the number of available buffer slots. After // calling this all buffer slots are both unallocated and owned by the // BufferQueue object (i.e. they are not owned by the client). diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h index 4318f0f..dcab049 100644 --- a/include/gui/SurfaceTexture.h +++ b/include/gui/SurfaceTexture.h @@ -55,7 +55,7 @@ public: virtual ~SurfaceTexture(); - virtual int query(int what, int* value); + // updateTexImage sets the image contents of the target texture to that of // the most recently queued buffer. |