summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2017-05-11 21:56:13 +0200
committerArne Coucheron <arco68@gmail.com>2017-12-16 06:52:34 +0100
commit19e28a2878d624afc44f700492d48c53b609590c (patch)
tree523e6c59308117df8772223a3ef9519733289ad4
parent0e8b34d4fe9b000206284cdb3cf76a3f647ce31a (diff)
downloadandroid_packages_apps_Gallery2-19e28a2878d624afc44f700492d48c53b609590c.tar.gz
android_packages_apps_Gallery2-19e28a2878d624afc44f700492d48c53b609590c.tar.bz2
android_packages_apps_Gallery2-19e28a2878d624afc44f700492d48c53b609590c.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) {