summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorPeter Eliasson <peter.eliasson.x@sonyericsson.com>2010-04-26 12:32:40 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-04-26 12:32:40 +0200
commit417675cab0f8f2fb73ff067071b5347186a81c19 (patch)
tree8ac66b9c7420b646edae790a1b268ff9e99cc2e3 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5a870fee53ca94c7575503c72574ca0f068d52c7 (diff)
Improved error handling when font loading fails.
Without this patch, an application could trigger a platform crash by calling: Typeface typeface = Typeface.createFromFile(""); boolean isbold = typeface.isBold(); The crash occurs since the Skia error that occurs when font loading fails is not propagated. With this patch, the Typeface constructor throws an IllegalStateException when Skia fails to load the font (i.e. when the native instance is null). Change-Id: I1002b37b7b32840cb7eeef6819d2982cb18c9003
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions