diff options
author | Gabriele M <moto.falcon.git@gmail.com> | 2017-05-11 21:56:13 +0200 |
---|---|---|
committer | LuK1337 <priv.luk@gmail.com> | 2019-10-21 21:42:08 +0200 |
commit | 3664c3aa74c5097dd8025781f59c82c433cb57b8 (patch) | |
tree | 65ae316356a40a2d75813605ae2382b56335057a | |
parent | 3dfa4fcbf82f5aa63a3cdaced3a11024acc55789 (diff) | |
download | android_packages_apps_Gallery2-3664c3aa74c5097dd8025781f59c82c433cb57b8.tar.gz android_packages_apps_Gallery2-3664c3aa74c5097dd8025781f59c82c433cb57b8.tar.bz2 android_packages_apps_Gallery2-3664c3aa74c5097dd8025781f59c82c433cb57b8.zip |
Gallery2: Increase the size of the tiles when decoding images
BitmapRegionDecoder was refactored in Android N [1] and bigger tiles
are now better to render images, so increase the size of each tile.
[1] https://issuetracker.google.com/issues/37136991#comment11
BUGBASH-188
BUGBASH-299
Change-Id: Ie9c282fc5a98c9da6bb8ae3bcfe869b8b422a84b
-rw-r--r-- | src/com/android/photos/views/TiledImageRenderer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/photos/views/TiledImageRenderer.java b/src/com/android/photos/views/TiledImageRenderer.java index c4e493b34..58bfdbb54 100644 --- a/src/com/android/photos/views/TiledImageRenderer.java +++ b/src/com/android/photos/views/TiledImageRenderer.java @@ -159,7 +159,7 @@ public class TiledImageRenderer { } public static int suggestedTileSize(Context context) { - return isHighResolution(context) ? 512 : 256; + return isHighResolution(context) ? 2048 : 1024; } private static boolean isHighResolution(Context context) { |