Merge "Show Bitmap.Config value when unable to handle."

This commit is contained in:
Jeff Sharkey
2010-11-16 18:10:02 -08:00
committed by Android (Google) Code Review

View File

@@ -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) {