summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJames O'Leary <jamesoleary@google.com>2021-06-02 10:24:17 -0400
committerJames O'Leary <jamesoleary@google.com>2021-06-02 13:39:25 -0400
commitb0c0318d097cdfa8244a882cea4eb72ecb57398a (patch)
tree08d4902274bfc7a6e741b7c331e7456cc816beae /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1a3245d5a1a5a3446c4cbd6cf5504e35dc0f2954 (diff)
Cache set wallpaper as PNG instead of JPEG
JPEG is a lossy image format: if image bytes are encoded to JPEG, then the JPEG is decoded to image bytes, those bytes will _always_ differ from the original bytes. Caching as PNG ensures that the same colors will be extracted from the wallpaper as were displayed in the Wallpaper Picker preview using WallpaperColors.fromBitmap. Otherwise, the cached wallpaper differs from the bitmap used with WallpaperColors.fromBitmap for the preview in wallpaper picker. Bug: 189931209 Test: Test tons and tons of wallpapers over a couple days. Change-Id: Ifc451f540d5e944055a5e0fb4be6a79c4bd5a939
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions