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-02 13:39:16 -0400
commit1a3245d5a1a5a3446c4cbd6cf5504e35dc0f2954 (patch)
treeaff2ba57f91a254fb84cedbe728ba029a70b77d9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0a40c03eb1a0583c7cac687d679d281683fae293 (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: Ifefd3e56df57f55cead985c3f182db2de10dc769
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions