diff options
author | Mike Reed <reed@google.com> | 2010-03-03 09:28:03 -0500 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2010-03-03 09:28:03 -0500 |
commit | cf9d0b9a12d2ae509c2a3075c4edb0fe38dc17a7 (patch) | |
tree | 61c04c32dab303719c1283ab106371a56e98a80d | |
parent | f7acc0456b574d63f33aaad3bbbec5344f74ce4b (diff) | |
download | external_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
-rw-r--r-- | Android.mk | 6 | ||||
-rw-r--r-- | WebCore/platform/graphics/android/ImageSourceAndroid.cpp | 9 |
2 files changed, 8 insertions, 7 deletions
@@ -224,6 +224,12 @@ LOCAL_CFLAGS += -Darm LOCAL_CFLAGS += -Wno-psabi endif +# need a flag to tell the C side when we're on devices with large memory +# budgets (i.e. larger than the low-end devices that initially shipped) +ifeq ($(ARCH_ARM_HAVE_VFP),true) +LOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE +endif + ifeq ($(ENABLE_SVG),true) LOCAL_CFLAGS += -DENABLE_SVG=1 endif 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) |