From 4bd1a3dbcad2ae424293e276434b45ebee97248d Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Tue, 16 Nov 2010 13:46:34 -0800 Subject: Show Bitmap.Config value when unable to handle. Part of investigating http://b/3201172. Change-Id: I76a31c968b4c60beb079349a0722aa9a4ea5921c --- graphics/java/android/renderscript/Allocation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/java/android/renderscript') diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java index 9dc291b..0de53f2 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) { -- cgit v1.1