| Index: webkit/child/webkitplatformsupport_impl.cc
|
| diff --git a/webkit/child/webkitplatformsupport_impl.cc b/webkit/child/webkitplatformsupport_impl.cc
|
| index 44350ce9ae04ea6dd70ab5d2f64034621b1939ec..ca82d3e273bb3d9e56f56dd0d30a38ce9513c08f 100644
|
| --- a/webkit/child/webkitplatformsupport_impl.cc
|
| +++ b/webkit/child/webkitplatformsupport_impl.cc
|
| @@ -51,6 +51,10 @@
|
| #include "webkit/common/user_agent/user_agent.h"
|
| #include "webkit/glue/webkit_glue.h"
|
|
|
| +#if defined(OS_ANDROID)
|
| +#include "base/android/sys_utils.h"
|
| +#endif
|
| +
|
| using WebKit::WebAudioBus;
|
| using WebKit::WebCookie;
|
| using WebKit::WebData;
|
| @@ -883,6 +887,15 @@ bool WebKitPlatformSupportImpl::memoryAllocatorWasteInBytes(size_t* size) {
|
| return base::allocator::GetAllocatorWasteSize(size);
|
| }
|
|
|
| +size_t WebKitPlatformSupportImpl::maxDecodedImageBytes() {
|
| +#if defined(OS_ANDROID)
|
| + // Limit image decoded size to 3M pixels on low end devices.
|
| + if (base::android::SysUtils::IsLowEndDevice())
|
| + return 3 * 1024 * 1024 * 4; // 4 is maximum number of bytes per pixel.
|
| +#endif
|
| + return noDecodedImageByteLimit;
|
| +}
|
| +
|
| void WebKitPlatformSupportImpl::SuspendSharedTimer() {
|
| ++shared_timer_suspended_;
|
| }
|
|
|