From ab066515cbe0e0a9e61efeb76afbaa63da169752 Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Tue, 4 Jan 2022 22:28:00 +0000 Subject: BBQ: Fix log spam when creating a new BBQ Change-Id: I48ecc1f89c9fdfe1e76ac9972d275d9d37c98eda Test: logcat on boot Bug: n/a --- libs/gui/BLASTBufferQueue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/gui/BLASTBufferQueue.cpp') diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 34faf87546..038e23df4c 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -197,13 +197,15 @@ void BLASTBufferQueue::update(const sp& 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; -- cgit v1.2.3-59-g8ed1b