summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2017-05-11 21:56:13 +0200
committerBruno Martins <bgcngm@gmail.com>2018-11-20 09:39:49 +0000
commit91f975d39691ff0609d4a3b817fb04abbddda278 (patch)
tree3c969054b715f5abd1120a83a6c71ff0e3f4016e
parent01d3b77a00a45c4364d2cd88e92392b13f2f582f (diff)
downloadandroid_packages_apps_Gallery2-91f975d39691ff0609d4a3b817fb04abbddda278.tar.gz
android_packages_apps_Gallery2-91f975d39691ff0609d4a3b817fb04abbddda278.tar.bz2
android_packages_apps_Gallery2-91f975d39691ff0609d4a3b817fb04abbddda278.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.java2
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) {