diff options
author | Jamie Gennis <jgennis@google.com> | 2012-05-07 13:50:11 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2012-05-08 17:08:33 -0700 |
commit | d72f233ffa125856a44976a50a66ceb669f49ab2 (patch) | |
tree | fbc8f965d4601b08825c86aa040450b60471ffa3 /include/gui/BufferQueue.h | |
parent | 59332804306c054082a39e9b004146bd03ae1d30 (diff) | |
download | frameworks_native-d72f233ffa125856a44976a50a66ceb669f49ab2.zip frameworks_native-d72f233ffa125856a44976a50a66ceb669f49ab2.tar.gz frameworks_native-d72f233ffa125856a44976a50a66ceb669f49ab2.tar.bz2 |
libgui: Add support for post-xform crops.
This change adds support for specifying a crop rectangle to a
SurfaceTextureClient that is in post-transformed coordinate space.
Change-Id: I247901de343e71b32850f7ae3bac62dfa612ad3d
Bug: 6299171
Diffstat (limited to 'include/gui/BufferQueue.h')
-rw-r--r-- | include/gui/BufferQueue.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/gui/BufferQueue.h b/include/gui/BufferQueue.h index e7fac3d..1c80d0c 100644 --- a/include/gui/BufferQueue.h +++ b/include/gui/BufferQueue.h @@ -170,7 +170,6 @@ public: mFrameNumber(0), mBuf(INVALID_BUFFER_SLOT) { mCrop.makeInvalid(); - mActiveRect.makeInvalid(); } // mGraphicBuffer points to the buffer allocated for this slot or is NULL // if no buffer has been allocated. @@ -194,11 +193,6 @@ public: // mBuf is the slot index of this buffer int mBuf; - - // mActiveRect is the active rectangle for the buffer. Pixels outside - // this rectangle are considered completely transparent for the purposes - // of window composition. - Rect mActiveRect; }; // The following public functions is the consumer facing interface @@ -302,7 +296,6 @@ private: mAcquireCalled(false), mNeedsCleanupOnRelease(false) { mCrop.makeInvalid(); - mActiveRect.makeInvalid(); } // mGraphicBuffer points to the buffer allocated for this slot or is NULL @@ -359,12 +352,6 @@ private: // mCrop is the current crop rectangle for this buffer slot. Rect mCrop; - // mActiveRect is the current active rectangle for this buffer slot. - // Pixels outside of this rectangle are to be treated as completely - // transparent during window composition. The rectangle is in buffer - // pixel coordinates. - Rect mActiveRect; - // mTransform is the current transform flags for this buffer slot. uint32_t mTransform; |