aboutsummaryrefslogtreecommitdiff
path: root/third_party/gif_decoder
diff options
context:
space:
mode:
authorSam Judd <judds@google.com>2014-07-10 12:11:55 -0700
committerSam Judd <judds@google.com>2014-07-10 12:47:18 -0700
commit310de52307eb090f0fa642ed18bbcbb298426ad4 (patch)
tree4d348e63c795154a853b08261856024da48df102 /third_party/gif_decoder
parentce5bd7fa20a673612e8ba3cb5257c1ce533bd758 (diff)
downloadglide-310de52307eb090f0fa642ed18bbcbb298426ad4.tar.gz
Provide final frame dimensions to GifDrawable.
This allows the intrinsic width and height to be constant which plays more nicely with the android framework.
Diffstat (limited to 'third_party/gif_decoder')
-rw-r--r--third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeader.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeader.java b/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeader.java
index 85604029..a5e556a5 100644
--- a/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeader.java
+++ b/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeader.java
@@ -34,4 +34,12 @@ public class GifHeader {
int bgColor;
boolean isTransparent;
int loopCount;
+
+ public int getHeight() {
+ return height;
+ }
+
+ public int getWidth() {
+ return width;
+ }
}