summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
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-09 11:31:57 -0400
commitd4b3a8faebfa0b505dc02014041de3625c614d2c (patch)
treee56a18c95e01812c37340258ea47763704f6d5cf /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentecb8654a93a7caa4bd99046f2b8cf13b718afa66 (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: I041d68bf057b24cf4dbd877ed403a1c2e67904dc
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions