diff options
author | Jason Sams <rjsams@android.com> | 2011-01-21 13:08:02 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-01-21 13:08:02 -0800 |
commit | ed5bab93c6851dc4143d6e0d23ebf288e026936b (patch) | |
tree | 69b8427d80e6408583b428e713fb94766fd87400 /graphics | |
parent | 0512d080a5ae7eccb154be4302aaf4b5fb8aa5a6 (diff) | |
download | frameworks_base-ed5bab93c6851dc4143d6e0d23ebf288e026936b.zip frameworks_base-ed5bab93c6851dc4143d6e0d23ebf288e026936b.tar.gz frameworks_base-ed5bab93c6851dc4143d6e0d23ebf288e026936b.tar.bz2 |
fix bug 3375251
Copying arrays of objects would generate an exception
due to excessive internal type checking.
Change-Id: Ic89c24962408f1a95dc0385b74618a70d6ff5859
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/renderscript/Allocation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java index 74cdf80..3dcfe88 100644 --- a/graphics/java/android/renderscript/Allocation.java +++ b/graphics/java/android/renderscript/Allocation.java @@ -212,7 +212,7 @@ public class Allocation extends BaseObj { for (int ct=0; ct < d.length; ct++) { i[ct] = d[ct].getID(); } - copy1DRangeFrom(0, mType.getCount(), i); + copy1DRangeFromUnchecked(0, mType.getCount(), i); } private void validateBitmapFormat(Bitmap b) { |