DescriptionDo not crash when out of memory at ImageData::create().
The old implementation was "allocate or die". It's not good for
ImageData, which may try to allocate a huge memory block. This CL
makes ImageData gracefully returns nullptr optionally raising an
exception in case of out of memory.
BUG=528898
Committed: https://crrev.com/bb2036fb19514a807ef2734b65d4b9b1df17ae6a
git-svn-id: svn://svn.chromium.org/blink/trunk@201982 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Patch Set 1 #
Total comments: 3
Messages
Total messages: 10 (2 generated)
|