diff options
author | Jason Sams <jsams@google.com> | 2013-04-14 19:28:29 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-04-14 19:28:29 -0700 |
commit | f38c6ab76a824e45c0491b753d5b88f8e337e3a3 (patch) | |
tree | 4506cecb61fa2282a5255fc6927cdda24f226642 /graphics/java/android/renderscript/RenderScript.java | |
parent | 60113556355f25d02d9d0e0556a02483cad8ff48 (diff) | |
parent | c4294ed2f1de5c89b5e283942e0d5f8cd8822bfb (diff) |
am c4294ed2: am 330a9fe3: Merge "Unhide new RS APIs." into jb-mr2-dev
* commit 'c4294ed2f1de5c89b5e283942e0d5f8cd8822bfb':
Unhide new RS APIs.
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r-- | graphics/java/android/renderscript/RenderScript.java | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java index 0a3aeb13a6a9..49192f79ec1c 100644 --- a/graphics/java/android/renderscript/RenderScript.java +++ b/graphics/java/android/renderscript/RenderScript.java @@ -107,9 +107,29 @@ public class RenderScript { mCacheDir = cacheDir; } + /** + * ContextType specifies the specific type of context to be created. + * + */ public enum ContextType { + /** + * NORMAL context, this is the default and what shipping apps should + * use. + */ NORMAL (0), + + /** + * DEBUG context, perform extra runtime checks to validate the + * kernels and APIs are being used as intended. Get and SetElementAt + * will be bounds checked in this mode. + */ DEBUG (1), + + /** + * PROFILE context, Intended to be used once the first time an + * application is run on a new device. This mode allows the runtime to + * do additional testing and performance tuning. + */ PROFILE (2); int mID; @@ -923,7 +943,8 @@ public class RenderScript { } /** - * @hide + * Place a message into the message queue to be sent back to the message + * handler once all previous commands have been executed. * * @param id * @param data @@ -1207,9 +1228,9 @@ public class RenderScript { /** * Create a basic RenderScript context. * - * @hide * * @param ctx The context. + * @param ct The type of context to be created. * @return RenderScript */ public static RenderScript create(Context ctx, ContextType ct) { |