summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-04-19 13:23:38 -0700
committer Vishnu Nair <vishnun@google.com> 2021-04-20 09:10:34 -0700
commit5cc9ac0ab36848468100353fc31a42cf0753b9e4 (patch)
tree7416ec770b607b260ae85ae669d3a27cebc21ad2 /libs/binder/ProcessState.cpp
parenta3a235f56fc2b015d8ee938e4507d942b0f6f9d4 (diff)
Fix crop scaling with BSL
With BQL, each layer had a concept of buffer space and layer space. The caller could set a buffer crop and a layer crop. The buffer crop would be applied in buffer space and the content would be scaled to the buffer size. Then the scaled content would then be scaled again to the layer size (also referred to as the window size). With BSL we do not have a concept of buffer space and layer space. So we should not set a buffer/content crop otherwise this might result in incorrect scaling or cropping. To fix this, in BBQ, when calculating the scale, use the buffer crop provided by the client and in SurfaceFlinger, instead of setting a buffer crop only set the layer crop. The buffer crop/content crop can be cleaned up once BQL is removed. Test: BLASTBufferQueueTest (cropped buffer scales to buffer and window size) Test: 720p content in android tv is not cropped incorrectly Bug: 178622186 Change-Id: I173df901120a43f397f6d623a7e7b93537a508e2
Diffstat (limited to 'libs/binder/ProcessState.cpp')
0 files changed, 0 insertions, 0 deletions