diff options
| author | verena beckham <verena@codeplay.com> | 2015-05-22 16:51:42 +0100 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2015-07-17 15:38:33 -0700 |
| commit | f5029803ae6ce9d92d70b76e7a7cdd8d484f31ca (patch) | |
| tree | ca5456dfc880ad4a43efafb61087cf9fd2be2973 /cpp/RenderScript.cpp | |
| parent | 89af6a932cb8ad303613de9e38f78f33974412ed (diff) | |
Add a flag to the API to specify -O0 on the bcc command line.
Add a flag RS_CONTEXT_OPT_LEVEL_0 which sets a field mOptLevel in the Context
to 0 when calling bcc.
Using this flag will result in an object file that is easier to debug.
Change-Id: I9673506710cc9f34c415b694fe5d6bc7e967f1db
Signed-off-by: verena beckham <verena@codeplay.com>
Diffstat (limited to 'cpp/RenderScript.cpp')
| -rw-r--r-- | cpp/RenderScript.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp index aa7dbd72..3d81d627 100644 --- a/cpp/RenderScript.cpp +++ b/cpp/RenderScript.cpp @@ -165,7 +165,8 @@ bool RS::init(const char * name, int targetApi, uint32_t flags) { } if (flags & ~(RS_CONTEXT_SYNCHRONOUS | RS_CONTEXT_LOW_LATENCY | - RS_CONTEXT_LOW_POWER | RS_CONTEXT_WAIT_FOR_ATTACH)) { + RS_CONTEXT_LOW_POWER | RS_CONTEXT_WAIT_FOR_ATTACH | + RS_CONTEXT_OPT_LEVEL_0)) { ALOGE("Invalid flags passed"); return false; } |
