From b8cdf48e1603682b3458fa2aa245884f36c43882 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 30 Mar 2010 13:18:39 -0400 Subject: [PATCH] enable gifs for large memory devices Change-Id: I801446e8255c113d5492935f2f91dc84b0d18164 http://b/1745918 --- WebCore/platform/graphics/android/ImageSourceAndroid.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WebCore/platform/graphics/android/ImageSourceAndroid.cpp b/WebCore/platform/graphics/android/ImageSourceAndroid.cpp index fa1794c60..06455d2de 100644 --- a/WebCore/platform/graphics/android/ImageSourceAndroid.cpp +++ b/WebCore/platform/graphics/android/ImageSourceAndroid.cpp @@ -215,8 +215,12 @@ void ImageSource::setURL(const String& url) // we only animate small GIFs for now, to save memory // also, we only support this in Japan, hence the Emoji check static bool should_use_animated_gif(int width, int height) { +#ifdef ANDROID_LARGE_MEMORY_DEVICE + return true; +#else return EmojiFont::IsAvailable() && width <= 32 && height <= 32; +#endif } #endif -- 2.11.0