Do 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 Review URL: https://codereview.chromium.org/1328343002 git-svn-id: svn://svn.chromium.org/blink/trunk@201982 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment