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

Commit 78a11714 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5443865 from 94c1d740 to pi-qpr3-b-release

Change-Id: If6fae3356fb3156b091b246657da366740b1899b
parents bbd1669c 94c1d740
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -73,7 +73,6 @@ BufferQueueCore::BufferQueueCore() :
    mActiveBuffers(),
    mActiveBuffers(),
    mDequeueCondition(),
    mDequeueCondition(),
    mDequeueBufferCannotBlock(false),
    mDequeueBufferCannotBlock(false),
    mQueueBufferCanDrop(false),
    mDefaultBufferFormat(PIXEL_FORMAT_RGBA_8888),
    mDefaultBufferFormat(PIXEL_FORMAT_RGBA_8888),
    mDefaultWidth(1),
    mDefaultWidth(1),
    mDefaultHeight(1),
    mDefaultHeight(1),
+5 −11
Original line number Original line Diff line number Diff line
@@ -872,7 +872,7 @@ status_t BufferQueueProducer::queueBuffer(int slot,
        item.mFence = acquireFence;
        item.mFence = acquireFence;
        item.mFenceTime = acquireFenceTime;
        item.mFenceTime = acquireFenceTime;
        item.mIsDroppable = mCore->mAsyncMode ||
        item.mIsDroppable = mCore->mAsyncMode ||
                mCore->mQueueBufferCanDrop ||
                mCore->mDequeueBufferCannotBlock ||
                (mCore->mSharedBufferMode && mCore->mSharedBufferSlot == slot);
                (mCore->mSharedBufferMode && mCore->mSharedBufferSlot == slot);
        item.mSurfaceDamage = surfaceDamage;
        item.mSurfaceDamage = surfaceDamage;
        item.mQueuedBuffer = true;
        item.mQueuedBuffer = true;
@@ -1213,10 +1213,9 @@ status_t BufferQueueProducer::connect(const sp<IProducerListener>& listener,
    mCore->mConnectedPid = IPCThreadState::self()->getCallingPid();
    mCore->mConnectedPid = IPCThreadState::self()->getCallingPid();
    mCore->mBufferHasBeenQueued = false;
    mCore->mBufferHasBeenQueued = false;
    mCore->mDequeueBufferCannotBlock = false;
    mCore->mDequeueBufferCannotBlock = false;
    mCore->mQueueBufferCanDrop = false;
    if (mDequeueTimeout < 0) {
    if (mCore->mConsumerControlledByApp && producerControlledByApp) {
        mCore->mDequeueBufferCannotBlock =
        mCore->mDequeueBufferCannotBlock = mDequeueTimeout < 0;
                mCore->mConsumerControlledByApp && producerControlledByApp;
        mCore->mQueueBufferCanDrop = mDequeueTimeout <= 0;
    }
    }


    mCore->mAllowAllocation = true;
    mCore->mAllowAllocation = true;
@@ -1487,12 +1486,7 @@ status_t BufferQueueProducer::setDequeueTimeout(nsecs_t timeout) {
    }
    }


    mDequeueTimeout = timeout;
    mDequeueTimeout = timeout;
    if (timeout >= 0) {
    mCore->mDequeueBufferCannotBlock = false;
    mCore->mDequeueBufferCannotBlock = false;
        if (timeout != 0) {
            mCore->mQueueBufferCanDrop = false;
        }
    }


    VALIDATE_CONSISTENCY();
    VALIDATE_CONSISTENCY();
    return NO_ERROR;
    return NO_ERROR;
+0 −5
Original line number Original line Diff line number Diff line
@@ -225,11 +225,6 @@ private:
    // consumer are controlled by the application.
    // consumer are controlled by the application.
    bool mDequeueBufferCannotBlock;
    bool mDequeueBufferCannotBlock;


    // mQueueBufferCanDrop indicates whether queueBuffer is allowd to drop
    // buffers in non-async mode. This flag is set during connect when both the
    // producer and consumer are controlled by application.
    bool mQueueBufferCanDrop;

    // mDefaultBufferFormat can be set so it will override the buffer format
    // mDefaultBufferFormat can be set so it will override the buffer format
    // when it isn't specified in dequeueBuffer.
    // when it isn't specified in dequeueBuffer.
    PixelFormat mDefaultBufferFormat;
    PixelFormat mDefaultBufferFormat;
+0 −4
Original line number Original line Diff line number Diff line
@@ -584,10 +584,6 @@ public:
    // non-blocking mode and its corresponding spare buffer (which is used to
    // non-blocking mode and its corresponding spare buffer (which is used to
    // ensure a buffer is always available).
    // ensure a buffer is always available).
    //
    //
    // N.B. queueBuffer will stop buffer dropping behavior if timeout is
    // strictly positive. If timeout is zero or negative, previous buffer
    // dropping behavior will not be changed.
    //
    // Return of a value other than NO_ERROR means an error has occurred:
    // Return of a value other than NO_ERROR means an error has occurred:
    // * BAD_VALUE - Failure to adjust the number of available slots. This can
    // * BAD_VALUE - Failure to adjust the number of available slots. This can
    //               happen because of trying to allocate/deallocate the async
    //               happen because of trying to allocate/deallocate the async