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

Commit a58fbee2 authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "BBQ: Fix log spam when creating a new BBQ"

parents c5e4e54e ab066515
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -190,13 +190,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;