summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-08-20 17:19:47 -0700
committerTim Murray <timmurray@google.com>2013-08-21 15:13:44 -0700
commit10913a5c37ba119bef335320d3e8be25212c05ad (patch)
tree469d96dc19e4d9b4efecb76147cced747256787f /cpp/RenderScript.cpp
parent21fa7a0a23eddab88ff261017f6d7a2548b4d89a (diff)
Make error handling kill context activity. Add parameter validation.
bug 10427951 Change-Id: I4abba969e34903265b84ee88d6a90bc9b9df5481
Diffstat (limited to 'cpp/RenderScript.cpp')
-rw-r--r--cpp/RenderScript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index 561b58f9..6ab22404 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -506,6 +506,10 @@ void RS::throwError(RSError error, const char *errMsg) {
}
}
+RSError RS::getError() {
+ return mCurrentError;
+}
+
void * RS::threadProc(void *vrsc) {
RS *rs = static_cast<RS *>(vrsc);