diff options
author | Jamie Gennis <jgennis@google.com> | 2011-06-13 11:14:57 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-13 11:14:57 -0700 |
commit | bd3e537980027f4502a13c204b3c7b9d10adad31 (patch) | |
tree | c0579407ae43b5fac78e640d339c4adfe5dd7b79 /include | |
parent | 28b6711c4c7449e597f57e016e5bc4741e115f9a (diff) | |
parent | 9deb930ebf7db317e7abec59b37a88c47999f9cf (diff) | |
download | frameworks_base-bd3e537980027f4502a13c204b3c7b9d10adad31.zip frameworks_base-bd3e537980027f4502a13c204b3c7b9d10adad31.tar.gz frameworks_base-bd3e537980027f4502a13c204b3c7b9d10adad31.tar.bz2 |
Merge changes I56779420,I044e44e1,Ic5adfa29,Ied541ab8
* changes:
SurfaceTexture: add some GL->GL tests.
SurfaceTexture: fix up a comment.
SurfaceTexture: add getTransformMatrix tests.
SurfaceTexture: fix a getTransformMatrix crash.
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/SurfaceTexture.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h index 2b31462..9294df6 100644 --- a/include/gui/SurfaceTexture.h +++ b/include/gui/SurfaceTexture.h @@ -188,6 +188,11 @@ private: status_t setBufferCountServerLocked(int bufferCount); + // computeCurrentTransformMatrix computes the transform matrix for the + // current texture. It uses mCurrentTransform and the current GraphicBuffer + // to compute this matrix and stores it in mCurrentTransformMatrix. + void computeCurrentTransformMatrix(); + enum { INVALID_BUFFER_SLOT = -1 }; struct BufferSlot { @@ -288,9 +293,9 @@ private: // by calling setBufferCount or setBufferCountServer int mBufferCount; - // mRequestedBufferCount is the number of buffer slots requested by the - // client. The default is zero, which means the client doesn't care how - // many buffers there is. + // mClientBufferCount is the number of buffer slots requested by the client. + // The default is zero, which means the client doesn't care how many buffers + // there is. int mClientBufferCount; // mServerBufferCount buffer count requested by the server-side @@ -322,6 +327,11 @@ private: // gets set to mLastQueuedTransform each time updateTexImage is called. uint32_t mCurrentTransform; + // mCurrentTransformMatrix is the transform matrix for the current texture. + // It gets computed by computeTransformMatrix each time updateTexImage is + // called. + float mCurrentTransformMatrix[16]; + // mCurrentTimestamp is the timestamp for the current texture. It // gets set to mLastQueuedTimestamp each time updateTexImage is called. int64_t mCurrentTimestamp; @@ -362,6 +372,7 @@ private: // variables of SurfaceTexture objects. It must be locked whenever the // member variables are accessed. mutable Mutex mMutex; + }; // ---------------------------------------------------------------------------- |