Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f133d77 authored by Robert Carr's avatar Robert Carr
Browse files

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
parent 5b2ae910
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;