diff options
| author | 2020-04-01 15:51:46 -0700 | |
|---|---|---|
| committer | 2020-04-01 15:52:45 -0700 | |
| commit | 9f133d7700b16b01070177f5e10750c8e8cf50fe (patch) | |
| tree | 46e7a562525f066a805d5fa228b8db0aa24e1a1e /libs/gui/BLASTBufferQueue.cpp | |
| parent | 5b2ae91025bed064887c7178b1aa0a19c50caaed (diff) | |
BLASTBufferQueue: Initialize transform hint on creation.
BufferQueueLayer does it (see onFirstRef) so we probably
should too. In particular it could be important to set
it before buffer allocation.
Bug: 152501005
Test: Existing tests pass
Change-Id: I60edd273dabb1f5b2176f55b6bd7cf92c0557ae1
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 545ae5b04e..c73d92cd9c 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -119,7 +119,9 @@ BLASTBufferQueue::BLASTBufferQueue(const sp<SurfaceControl>& surface, int width, mBufferItemConsumer->setBufferFreedListener(this); mBufferItemConsumer->setDefaultBufferSize(mWidth, mHeight); mBufferItemConsumer->setDefaultBufferFormat(PIXEL_FORMAT_RGBA_8888); + mTransformHint = mSurfaceControl->getTransformHint(); + mBufferItemConsumer->setTransformHint(mTransformHint); mNumAcquired = 0; mNumFrameAvailable = 0; |