diff options
author | David Gross <dgross@google.com> | 2016-06-13 18:06:24 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-13 18:06:24 +0000 |
commit | 9a53329b0ad7509d4081d2d35bbc229a2b69f816 (patch) | |
tree | a89cdc4efd792de4073e95278df948f45ca506c4 /rs/java/android/renderscript/Script.java | |
parent | a3d4baf43b22f205cc0b26af9eb25df25b5c9a3e (diff) | |
parent | d749245b88456fcec8be1b93528e179d3a2d61aa (diff) |
Merge \"Delete simple reduction implementation.\" into nyc-dev
am: d749245b88
Change-Id: I1407a9a6c239d6e2d415c7e53581d4d3eb0db8fa
Diffstat (limited to 'rs/java/android/renderscript/Script.java')
-rw-r--r-- | rs/java/android/renderscript/Script.java | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/rs/java/android/renderscript/Script.java b/rs/java/android/renderscript/Script.java index fc3280be3ac7..13d5fcd57446 100644 --- a/rs/java/android/renderscript/Script.java +++ b/rs/java/android/renderscript/Script.java @@ -286,35 +286,6 @@ public class Script extends BaseObj { } /** - * Only intended for use by generated reflected code. (Simple reduction) - * - * @hide - */ - protected void reduce(int slot, Allocation ain, Allocation aout, LaunchOptions sc) { - mRS.validate(); - mRS.validateObject(ain); - mRS.validateObject(aout); - - if (ain == null || aout == null) { - throw new RSIllegalArgumentException( - "Both ain and aout are required to be non-null."); - } - - long in_id = ain.getID(mRS); - long out_id = aout.getID(mRS); - - int[] limits = null; - if (sc != null) { - limits = new int[2]; - - limits[0] = sc.xstart; - limits[1] = sc.xend; - } - - mRS.nScriptReduce(getID(mRS), slot, in_id, out_id, limits); - } - - /** * Only intended for use by generated reflected code. (General reduction) * */ @@ -350,7 +321,7 @@ public class Script extends BaseObj { limits[5] = sc.zend; } - mRS.nScriptReduceNew(getID(mRS), slot, in_ids, out_id, limits); + mRS.nScriptReduce(getID(mRS), slot, in_ids, out_id, limits); } long[] mInIdsBuffer; |