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

Commit ab066515 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

BBQ: Fix log spam when creating a new BBQ

Change-Id: I48ecc1f89c9fdfe1e76ac9972d275d9d37c98eda
Test: logcat on boot
Bug: n/a
parent 6594953a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -197,13 +197,15 @@ void BLASTBufferQueue::update(const sp<SurfaceControl>& surface, uint32_t width,

    SurfaceComposerClient::Transaction t;
    const bool surfaceControlChanged = !SurfaceControl::isSameSurface(mSurfaceControl, surface);
    if (surfaceControlChanged && mSurfaceControl != nullptr) {
        BQA_LOGD("Updating SurfaceControl without recreating BBQ");
    }
    bool applyTransaction = false;

    // Always update the native object even though they might have the same layer handle, so we can
    // get the updated transform hint from WM.
    mSurfaceControl = surface;
    if (surfaceControlChanged) {
        BQA_LOGD("Updating SurfaceControl without recreating BBQ");
        t.setFlags(mSurfaceControl, layer_state_t::eEnableBackpressure,
                   layer_state_t::eEnableBackpressure);
        applyTransaction = true;