diff options
author | Jason Sams <rjsams@android.com> | 2010-11-08 17:06:46 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-11-08 17:19:31 -0800 |
commit | 1c41517124a90fcfdb95dc069fc492c6fcf1ff25 (patch) | |
tree | 43a463cfe40b0cf7e96ca9045075e31390d1e60e /libs/rs/rsScriptC_Lib.cpp | |
parent | 553a53ef9ff789dff8b5a74dfea4d6f37feeb263 (diff) |
Handle user message ID 0
Pass RS runtime errors back to java.
throw exceptions for runtime errors.
Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
Diffstat (limited to 'libs/rs/rsScriptC_Lib.cpp')
-rw-r--r-- | libs/rs/rsScriptC_Lib.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/rs/rsScriptC_Lib.cpp b/libs/rs/rsScriptC_Lib.cpp index ecae306e8a75..bb8e6a79d8a9 100644 --- a/libs/rs/rsScriptC_Lib.cpp +++ b/libs/rs/rsScriptC_Lib.cpp @@ -347,28 +347,28 @@ static uint32_t SC_toClient2(int cmdID, void *data, int len) { GET_TLS(); //LOGE("SC_toClient %i %i %i", cmdID, len); - return rsc->sendMessageToClient(data, cmdID, len, false); + return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, false); } static uint32_t SC_toClient(int cmdID) { GET_TLS(); //LOGE("SC_toClient %i", cmdID); - return rsc->sendMessageToClient(NULL, cmdID, 0, false); + return rsc->sendMessageToClient(NULL, RS_MESSAGE_TO_CLIENT_USER, cmdID, 0, false); } static uint32_t SC_toClientBlocking2(int cmdID, void *data, int len) { GET_TLS(); //LOGE("SC_toClientBlocking %i %i", cmdID, len); - return rsc->sendMessageToClient(data, cmdID, len, true); + return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, true); } static uint32_t SC_toClientBlocking(int cmdID) { GET_TLS(); //LOGE("SC_toClientBlocking %i", cmdID); - return rsc->sendMessageToClient(NULL, cmdID, 0, true); + return rsc->sendMessageToClient(NULL, RS_MESSAGE_TO_CLIENT_USER, cmdID, 0, true); } int SC_divsi3(int a, int b) |