summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJames O'Leary <jamesoleary@google.com>2021-06-02 10:21:58 -0400
committerJames O'Leary <jamesoleary@google.com>2021-06-09 11:31:57 -0400
commitecb8654a93a7caa4bd99046f2b8cf13b718afa66 (patch)
tree021cc51bdb125dfd9f3e0e2b4e5061cded2f3a68 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentcdbc555a0b5a4aa061da7dcda5786ddc43eefeb6 (diff)
Only rescale wallpaper if its > display height
WallpaperPicker assigns wallpapers, this code caches them. The assigned wallpaper is ~always slightly smaller than the display size There's no need to scale _up_ the assigned wallpaper, it will only permanently introduce scaling artifacts while increasing the amount of storage required to store the wallpaper. Most importantly, it creates an inconsistency between the colors WallpaperColors.fromBitmap returns, and the WallpaperColors returned by the system from the cached copy. This causes a large problem for dynamic color, as it means the colors displayed in Wallpaper Picker will differ from the colors actually extracted by the system. Bug: 189931209 Test: Test tons and tons of wallpapers over a couple days. Change-Id: I041d68bf057b24cf4dad677ed403a1c2e67904dc
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions