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 | b856052c00dfef70d0957482c72c2979ffc4733a (patch) | |
tree | eab7a1f87865126334eba42284c5381548f7b012 /include | |
parent | 9e4b89486e0703dea4149a789b389364f6bf3340 (diff) | |
download | frameworks_native-b856052c00dfef70d0957482c72c2979ffc4733a.zip frameworks_native-b856052c00dfef70d0957482c72c2979ffc4733a.tar.gz frameworks_native-b856052c00dfef70d0957482c72c2979ffc4733a.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. |