summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2024-11-09 02:06:07 +0000
committer Alec Mouri <alecmouri@google.com> 2024-11-09 03:51:14 +0000
commitedc27eecae4a646a5786343ab7f6a1269db6cffa (patch)
tree1838afd8504913d0a2311b469e459baf3e81fcf0 /libs/androidfw/StringPool.cpp
parent06af5c8f7f73bc3c5d5907e6d6cb5136f487c9f3 (diff)
Fix seaming issue in BitmapRegionDecoder for gainmaps
Rounding discrepancies in the image codec infrastructure was allowing gainmaps to be decoded with a 1px border on the edge, which introduces visible seams when zooming into large images. Fix this by adjusting how computing the desired gainmap subregion size, by pretending we downsample first, then compute the subregion size based on that. Add a long paragraph explaining why we have to do this with an example, because it's not entirely intuitive. Also adjust how we poke at the gainmap resampling flag, since some CTS tests run before RenderThread starts up and intializes the properties. Bug: 371123308 Flag: com.android.graphics.hwui.flags.resample_gainmap_regions Test: Decoding in Photos and Files Test: GainmapTest Change-Id: Id608c5838f7890d0304b040e13d7281aa879a75c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions