summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/Allocation.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2010-11-16 13:46:34 -0800
committerJeff Sharkey <jsharkey@android.com>2010-11-16 13:47:37 -0800
commit4bd1a3dbcad2ae424293e276434b45ebee97248d (patch)
tree4073c54ebeff628e249a3edec1f80910d990792b /graphics/java/android/renderscript/Allocation.java
parent4e74e181d1f06b31ebe98589dbe2ee9ddb722173 (diff)
Show Bitmap.Config value when unable to handle.
Part of investigating http://b/3201172. Change-Id: I76a31c968b4c60beb079349a0722aa9a4ea5921c
Diffstat (limited to 'graphics/java/android/renderscript/Allocation.java')
-rw-r--r--graphics/java/android/renderscript/Allocation.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java
index 9dc291b1650e..0de53f2db942 100644
--- a/graphics/java/android/renderscript/Allocation.java
+++ b/graphics/java/android/renderscript/Allocation.java
@@ -352,7 +352,7 @@ public class Allocation extends BaseObj {
if (bc == Bitmap.Config.RGB_565) {
return Element.RGB_565(rs);
}
- throw new RSInvalidStateException("Bad bitmap type.");
+ throw new RSInvalidStateException("Bad bitmap type: " + bc);
}
static private Type typeFromBitmap(RenderScript rs, Bitmap b) {