commit | a8015af4c4f3a74f180b2357c3a08029dfdb90ba | [log] [tgz] |
---|---|---|
author | Gabriele M <moto.falcon.git@gmail.com> | Thu May 11 21:56:13 2017 +0200 |
committer | LuK1337 <priv.luk@gmail.com> | Thu Nov 26 11:21:26 2020 +0100 |
tree | d933116130833e858bd4e22d10ab00490040b417 | |
parent | 45e442bd14d7bd4b2fdd5efde4929e6b073dab00 [diff] |
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
diff --git a/src/com/android/photos/views/TiledImageRenderer.java b/src/com/android/photos/views/TiledImageRenderer.java index c4e493b..58bfdbb 100644 --- a/src/com/android/photos/views/TiledImageRenderer.java +++ b/src/com/android/photos/views/TiledImageRenderer.java
@@ -159,7 +159,7 @@ } public static int suggestedTileSize(Context context) { - return isHighResolution(context) ? 512 : 256; + return isHighResolution(context) ? 2048 : 1024; } private static boolean isHighResolution(Context context) {