summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2016-07-25 14:50:08 -0700
committerChristopher Tate <ctate@google.com>2016-07-25 18:11:47 -0700
commitebadfb17e77c5e297635376dbdbcf1615192620f (patch)
treedd86673eb40dfc8dcc2cef2909eaa843cdbd712a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentdd756c26e2a081365e9a57685419cdb6526c8a8a (diff)
Fix wallpaper restore from pre-N devices
The previous path "worked" but left the wallpaper bookkeeping with incorrect SELinux labeling, which led to cascade failures later on when apps tried to set new system wallpaper imagery or read the current image for the picker UI. We now (a) explicitly label wallpaper files in all change cases, (b) let the restored imagery flow through the full crop path, as should have been done in the first place, and as a result (c) lift the size restrictions on the source image, because now we are doing a device-appropriate scaling operation on the image. The "when to crop/scale" test has been slightly relaxed such that a restored image of exactly the right size now longer triggers a superfluous factor-1.0 scaling operation. Bug 30361282 Change-Id: I9a305eea2227952493f64ab78862648cafb816ff
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions