diff options
author | Cary Clark <cary@android.com> | 2010-03-30 13:18:39 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-03-30 13:18:39 -0400 |
commit | b8cdf48e1603682b3458fa2aa245884f36c43882 (patch) | |
tree | 75db159b4e61973eda472f40b351a1b295c6a1b4 /WebCore | |
parent | 8fecd9c9a62aa89fb44ed3142ba583dc7b8cbe29 (diff) | |
download | external_webkit-b8cdf48e1603682b3458fa2aa245884f36c43882.zip external_webkit-b8cdf48e1603682b3458fa2aa245884f36c43882.tar.gz external_webkit-b8cdf48e1603682b3458fa2aa245884f36c43882.tar.bz2 |
enable gifs for large memory devices
Change-Id: I801446e8255c113d5492935f2f91dc84b0d18164
http://b/1745918
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/graphics/android/ImageSourceAndroid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/ImageSourceAndroid.cpp b/WebCore/platform/graphics/android/ImageSourceAndroid.cpp index fa1794c..06455d2 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 |