diff options
author | Stephen McGroarty <stephen@codeplay.com> | 2015-09-02 15:54:05 +0100 |
---|---|---|
committer | Stephen McGroarty <stephen@codeplay.com> | 2015-09-02 16:11:28 +0100 |
commit | 88891e63c09bee4f6f994e53213018845e0f7268 (patch) | |
tree | 9003465f52aedd5a106347ecc9a2bfb4d01de651 /rs/java/android/renderscript/RenderScript.java | |
parent | 582d16681bf46eb2f11c24132ffbcd9f7cc4b74d (diff) |
Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.
The flag was previously used to set the optimization level
of the bcc compiler to -O0. However, this functionality is
now accomplished through deriving the optimization level
from the input bitcode. That patch can be found here:
https://android-review.googlesource.com/169330
Change-Id: I9c57d941bb35c6f737a31fcd74f31d9de25a16a8
Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
-rw-r--r-- | rs/java/android/renderscript/RenderScript.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/rs/java/android/renderscript/RenderScript.java b/rs/java/android/renderscript/RenderScript.java index 326f2732aca7..4d53c8d94c65 100644 --- a/rs/java/android/renderscript/RenderScript.java +++ b/rs/java/android/renderscript/RenderScript.java @@ -98,13 +98,6 @@ public class RenderScript { */ public static final int CREATE_FLAG_WAIT_FOR_ATTACH = 0x0008; - /** - * @hide - * Context creation flag which specifies that optimization level 0 is - * passed to the device compiler upon execution of the RenderScript kernel. - * The default optimization level is 3. - */ - public static final int CREATE_FLAG_OPT_LEVEL_0 = 0x0010; /* * Detect the bitness of the VM to allow FieldPacker to do the right thing. @@ -1369,7 +1362,7 @@ public class RenderScript { } if ((flags & ~(CREATE_FLAG_LOW_LATENCY | CREATE_FLAG_LOW_POWER | - CREATE_FLAG_WAIT_FOR_ATTACH | CREATE_FLAG_OPT_LEVEL_0)) != 0) { + CREATE_FLAG_WAIT_FOR_ATTACH)) != 0) { throw new RSIllegalArgumentException("Invalid flags passed."); } |