commit | dee4cb07a3652457e18a0bf4be57d2cedeca7359 | [log] [tgz] |
---|---|---|
author | Jack Palevich <jackpal@google.com> | Mon Dec 13 11:13:32 2010 -0800 |
committer | Jack Palevich <jackpal@google.com> | Mon Dec 13 17:21:12 2010 -0800 |
tree | a220e8d123e7f6e0b5be972a1f9d75722ce8bfed | |
parent | 128b6ba93d0549fd2beff4482678e1229dc1cf3d [diff] |
Avoid SIGSEGV in Bitmap_writeToParcel. SkBitmap::getPixels() can return NULL. The rest of the JNI Bitmap code treats this NULL as if the SkBitmap has transparent black pixels. Bitmap_writeToParcel now does the same. Change-Id: I5e70b42b3d22a8aea898ce342e590000325bd0f9