commit | ef7be262e5859efdf805d1b9612bc2b250d5971e | [log] [tgz] |
---|---|---|
author | Eric Hassold <hassold@google.com> | Wed Feb 23 16:46:11 2011 -0800 |
committer | Eric Hassold <hassold@google.com> | Thu Feb 24 11:21:13 2011 -0800 |
tree | bdebebf4da9bdae564336d534282283889662689 | |
parent | b7508df1f6c1dd187660de8ce310f3fbed22b26c [diff] |
Detect out of memory in extractAlpha When extractAlpha() native method in Skia fails to allocate pixels, it resets target bitmap. This change detects when such empty bitmap is returned, and throws a OutOfMemory Java exception. Depends on https://android-git.corp.google.com/g/97793 Bug: 3418381 Change-Id: I65a84998be089c49ed5005f6995bdc4f4d1669bc