summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2023-04-12 16:28:19 -0700
committer Vishnu Nair <vishnun@google.com> 2023-04-12 16:32:44 -0700
commit5b5f6936cf3105f5fc4f0e517f66d4d4420303da (patch)
tree2338797d2f35f98d1fe86d10426c6831caf746da /libs/gui/BLASTBufferQueue.cpp
parent9402f4fa5166f95c4cc5f8164f0930261ff58dd0 (diff)
[bbq] always update size if scaling mode changes to non freeze
Test: presubmit (coming soon :) ) Fixes: 277346192 Change-Id: I7d86cbd794c2bfc5f4a6847c844c6bc81f80bbcf
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
-rw-r--r--libs/gui/BLASTBufferQueue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp
index 821dd37a85..fd42b33e49 100644
--- a/libs/gui/BLASTBufferQueue.cpp
+++ b/libs/gui/BLASTBufferQueue.cpp
@@ -582,7 +582,8 @@ status_t BLASTBufferQueue::acquireNextBufferLocked(
// Only update mSize for destination bounds if the incoming buffer matches the requested size.
// Otherwise, it could cause stretching since the destination bounds will update before the
// buffer with the new size is acquired.
- if (mRequestedSize == getBufferSize(bufferItem)) {
+ if (mRequestedSize == getBufferSize(bufferItem) ||
+ bufferItem.mScalingMode != NATIVE_WINDOW_SCALING_MODE_FREEZE) {
mSize = mRequestedSize;
}
Rect crop = computeCrop(bufferItem);