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
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp
index 545ae5b..c73d92c 100644
--- a/libs/gui/BLASTBufferQueue.cpp
+++ b/libs/gui/BLASTBufferQueue.cpp
@@ -119,7 +119,9 @@
mBufferItemConsumer->setBufferFreedListener(this);
mBufferItemConsumer->setDefaultBufferSize(mWidth, mHeight);
mBufferItemConsumer->setDefaultBufferFormat(PIXEL_FORMAT_RGBA_8888);
+
mTransformHint = mSurfaceControl->getTransformHint();
+ mBufferItemConsumer->setTransformHint(mTransformHint);
mNumAcquired = 0;
mNumFrameAvailable = 0;