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

Commit 2882e98b authored by Valerie Hau's avatar Valerie Hau
Browse files

add transformToDisplayInverse

adding transformToDisplayInverse and removing
transformHint while debugging issues with
transformHint

Bug: 147388905
Test: build, boot, libgui_test
Change-Id: I5b8a15d0f2ac3c692ef093a63fb18f84a07636dc
parent e7dbcfd2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ BLASTBufferQueue::BLASTBufferQueue(const sp<SurfaceControl>& surface, int width,
    mBufferItemConsumer->setBufferFreedListener(this);
    mBufferItemConsumer->setDefaultBufferSize(mWidth, mHeight);
    mBufferItemConsumer->setDefaultBufferFormat(PIXEL_FORMAT_RGBA_8888);
    mBufferItemConsumer->setTransformHint(mSurfaceControl->getTransformHint());
    mTransformHint = mSurfaceControl->getTransformHint();

    mNumAcquired = 0;
    mNumFrameAvailable = 0;
@@ -62,7 +62,6 @@ void BLASTBufferQueue::update(const sp<SurfaceControl>& surface, int width, int
    mWidth = width;
    mHeight = height;
    mBufferItemConsumer->setDefaultBufferSize(mWidth, mHeight);
    mBufferItemConsumer->setTransformHint(mSurfaceControl->getTransformHint());
}

static void transactionCallbackThunk(void* context, nsecs_t latchTime,
@@ -155,6 +154,7 @@ void BLASTBufferQueue::processNextBufferLocked() {
    t->setFrame(mSurfaceControl, {0, 0, (int32_t)buffer->getWidth(), (int32_t)buffer->getHeight()});
    t->setCrop(mSurfaceControl, computeCrop(bufferItem));
    t->setTransform(mSurfaceControl, bufferItem.mTransform);
    t->setTransformToDisplayInverse(mSurfaceControl, bufferItem.mTransformToDisplayInverse);

    if (applyTransaction) {
        t->apply();