Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3eb6c88b authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Check for (and clear) Exceptions thrown by TransferParameters

In GraphicsJNI::getColorSpace, which returns an
android.graphics.ColorSpace for a Bitmap, Skia reads the encoded
transfer function which then gets passed to the TransferParameters
constructor. It's possible for that constructor to throw an Exception,
in which case we cannot call JNI functions without handling the
Exception. Clear it and return null, since we are now unable to create
an android.graphics.ColorSpace.

Bug: 198155681
Test: I805aba8c078aac71d92ea71a199c2e1fe52df8fd
Flag: EXEMPT trivial bug fix
Change-Id: Ib1f7cbcc62a4722a2379b111838584cc4b6a36cc
parent 309fdfc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment