summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScriptGL.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2010-12-10 17:12:19 -0800
committerChristopher Tate <ctate@google.com>2010-12-13 16:41:24 -0800
commit3f64f8d8fc05189777e83b4efd3882cbc661fdeb (patch)
tree124c21826f04e229fa22a9478794381b98c82eff /graphics/java/android/renderscript/RenderScriptGL.java
parentffdd591a829af7fddd36a7b80d2a3b8188c871a6 (diff)
Don't restore wildly wrong sized wallpapers
If the dimensions of the original are sufficiently different from the device's preferred dimensions, just don't restore the image. This avoids bad letterboxing / clipping on e.g. phone <-> tablet data migration. The expansion/shrinkage ratios used here allow restores of saved wallpaper images among HVGA devices, among WVGA variants, and among tablets; but skip restoring wallpapers across those categories (where severe clipping or letterboxing would occur). Bug 3261863 Change-Id: I75e75d6401d18f1df10d75796ee04e21d2302cfa
Diffstat (limited to 'graphics/java/android/renderscript/RenderScriptGL.java')
0 files changed, 0 insertions, 0 deletions