diff options
author | Stephen Hines <srhines@google.com> | 2013-12-03 16:44:44 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2013-12-03 16:44:44 -0800 |
commit | 70537f52bdc6e8702db03cc91fe511371fb31267 (patch) | |
tree | 8246aa5cdbae749c92790755a51f47a94e981887 /rsScriptC_Lib.cpp | |
parent | 9f02a929536ef367441bda04dccbf2785a3d4b77 (diff) | |
download | rs-70537f52bdc6e8702db03cc91fe511371fb31267.tar.gz |
Retain older message APIs since existing GPU drivers depend on them.
Change-Id: Ic5425fafb7971b6094108d79346d067785b91735
Diffstat (limited to 'rsScriptC_Lib.cpp')
-rw-r--r-- | rsScriptC_Lib.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rsScriptC_Lib.cpp b/rsScriptC_Lib.cpp index 4434394d..9435a4a7 100644 --- a/rsScriptC_Lib.cpp +++ b/rsScriptC_Lib.cpp @@ -171,6 +171,16 @@ uint32_t rsrToClientBlocking(Context *rsc, int cmdID, const void *data, int len) return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, true); } +// Keep these two routines (using non-const void pointers) so that we can +// still use existing GPU drivers. +uint32_t rsrToClient(Context *rsc, int cmdID, void *data, int len) { + return rsrToClient(rsc, cmdID, (const void *)data, len); +} + +uint32_t rsrToClientBlocking(Context *rsc, int cmdID, void *data, int len) { + return rsrToClientBlocking(rsc, cmdID, (const void *)data, len); +} + void rsrAllocationIoSend(Context *rsc, Allocation *src) { src->ioSend(rsc); } |