commit | a987271dda872ae289b7a4366b7f89c51056fac3 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Wed Jun 17 11:56:43 2015 -0400 |
committer | The Android Automerger <android-build@google.com> | Thu Jun 18 16:11:48 2015 -0700 |
tree | 28347fad975d2f1826b0cad1b0eb04cab3f84392 | |
parent | ab816f2ce4d887b1bc492a39993476802dc37174 [diff] |
Fixes for Region_writeToParcel. Check the return value of Parcel::writeInplace. If it is NULL, there was a failure, so do not attempt to write to it. Instead, report the error and return false. If SkRegion::writeToMemory claims to have written a different amount of memory than it claimed it needed, report that error as well. Change uses of NULL in this function to nullptr. BUG:21271229 BUG:20666821 Change-Id: Ia6160f74f30bf42f5ff97f716dadb01d1f0d6961