OSDN Git Service

Check the available memory when allocating an ImageBuffer.
authorBen Murdoch <benm@google.com>
Wed, 10 Aug 2011 12:17:08 +0000 (13:17 +0100)
committerBen Murdoch <benm@google.com>
Fri, 12 Aug 2011 16:26:30 +0000 (17:26 +0100)
commit3e556736c899f74f2ccc010a8bc7401c36e9a1a0
treed4938bc18892148a044ca7bf4715bdd040053946
parent6a94579dab1dca12e6555b01602efeb5debda17a
Check the available memory when allocating an ImageBuffer.

The ImageBuffers used by canvas can eat a ton of memory quickly, so
be mindful of the available memory on the device before allocating
them.

See also frameworks/base change
I3d0f85075497c2a374cd866b0223eecaaa4b5f46

Bug: 5142892

Change-Id: I74d243ef9d0d63aac168c16653e9aae0430dfa21
Source/WebCore/platform/android/PlatformBridge.h
Source/WebCore/platform/graphics/android/ImageBufferAndroid.cpp
Source/WebKit/android/WebCoreSupport/PlatformBridge.cpp