diff options
author | 2023-04-13 15:52:31 +0000 | |
---|---|---|
committer | 2023-04-13 15:52:31 +0000 | |
commit | cd4abe6841aa0f0ce78a7612c9208caf71c50e0d (patch) | |
tree | e24ae2dff3061de041bf1004c6aefcb376009d0f /libs/gui/BLASTBufferQueue.cpp | |
parent | 7e74d2cadd51204a85e691ab13cef12c6325ee56 (diff) | |
parent | 5b5f6936cf3105f5fc4f0e517f66d4d4420303da (diff) |
Merge "[bbq] always update size if scaling mode changes to non freeze" into udc-dev
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
-rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 3 |
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); |