commit | 5906a4869cdf5c39eba1d9a3125aff894c5e804d | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Tue Oct 03 14:00:20 2017 -0400 |
committer | Leon Scroggins <scroggo@google.com> | Mon Oct 16 17:23:34 2017 +0000 |
tree | 429edc2bea8da33764e493544c5e39f7064680d4 | |
parent | 995627c3ee75dce1ebf6338012cba60d68fe94f0 [diff] |
Throw OOME if Bitmap.nativeCreate fails Bug:33846679 Test: I6ab6cb7a3b3151641a9f9b02b0bfc484e0a4524b This matches the old behavior, prior to switching from Java allocated pixel memory to native allocations (b/27762775). It also better matches what has happened - we ran out of memory. (Better than the current behavior - NullPointerException in the Java code, or an alternative solution of returning null, which would likely result in NPEs in the calling code.) Merged-In: I3958ed1106ac94fb1d3f30e044b620d984875211 Change-Id: I3958ed1106ac94fb1d3f30e044b620d984875211