summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/ImageSourceAndroid.cpp
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2010-03-03 09:28:03 -0500
committerMike Reed <reed@google.com>2010-03-03 09:28:03 -0500
commitcf9d0b9a12d2ae509c2a3075c4edb0fe38dc17a7 (patch)
tree61c04c32dab303719c1283ab106371a56e98a80d /WebCore/platform/graphics/android/ImageSourceAndroid.cpp
parentf7acc0456b574d63f33aaad3bbbec5344f74ce4b (diff)
downloadexternal_webkit-cf9d0b9a12d2ae509c2a3075c4edb0fe38dc17a7.zip
external_webkit-cf9d0b9a12d2ae509c2a3075c4edb0fe38dc17a7.tar.gz
external_webkit-cf9d0b9a12d2ae509c2a3075c4edb0fe38dc17a7.tar.bz2
bump up our image cache etc. when we're on larger devices (e.g. have VFP)
fixes http://b/issue?id=2236822
Diffstat (limited to 'WebCore/platform/graphics/android/ImageSourceAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/ImageSourceAndroid.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/WebCore/platform/graphics/android/ImageSourceAndroid.cpp b/WebCore/platform/graphics/android/ImageSourceAndroid.cpp
index c486a6a..b86763a 100644
--- a/WebCore/platform/graphics/android/ImageSourceAndroid.cpp
+++ b/WebCore/platform/graphics/android/ImageSourceAndroid.cpp
@@ -37,12 +37,6 @@
#include "SkStream.h"
#include "SkTemplates.h"
-// need a flag to tell us when we're on a large-ram device (e.g. >= 256M)
-// for now just use this hack
-#if 1
- #define ON_LARGE_RAM_DEVICE
-#endif
-
#ifdef ANDROID_ANIMATED_GIF
#include "EmojiFont.h"
#include "GIFImageDecoder.h"
@@ -58,7 +52,8 @@ SkPixelRef* SkCreateRLEPixelRef(const SkBitmap& src);
//#define TRACE_RLE_BITMAPS
-#ifdef ON_LARGE_RAM_DEVICE
+// flag to tell us when we're on a large-ram device (e.g. >= 256M)
+#ifdef ANDROID_LARGE_MEMORY_DEVICE
// don't use RLE for images smaller than this, since they incur a drawing cost
// (and don't work as patterns yet) we only want to use RLE when we must
#define MIN_RLE_ALLOC_SIZE (8*1024*1024)