summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorStephen McGroarty <stephen@codeplay.com>2015-05-08 15:31:49 +0100
committerStephen Hines <srhines@google.com>2015-05-19 18:03:09 -0700
commitd5164d537c84867880694327727b5f22b0a3ccbd (patch)
tree5976a614dc2e415db969d3d45220c9b33b3e3b2d /cpp/RenderScript.cpp
parent29ddfb640ac034a858352ebcc8c2a3b476b4373a (diff)
Added in wait for attach context flag.
Added in a small flag which is passed to the context from the Java/C++ API which causes the context to delay execution until a debugger is a attached. This gives time to the developer to attach a debugger to the process before the kernel is executed. Change-Id: I5bb8e75100436920f9e1a0f414f3b0bcf0d2b439 Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
Diffstat (limited to 'cpp/RenderScript.cpp')
-rw-r--r--cpp/RenderScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index c05e0f90..aa7dbd72 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -165,7 +165,7 @@ 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_LOW_POWER | RS_CONTEXT_WAIT_FOR_ATTACH)) {
ALOGE("Invalid flags passed");
return false;
}