summaryrefslogtreecommitdiff
path: root/RenderScript.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-11-08 17:06:46 -0800
committerJason Sams <rjsams@android.com>2010-11-08 17:19:31 -0800
commitaad4bc5231dd7059fc5148b34a951117d9b5f4ad (patch)
tree973d8aea0244b8e8f069fadef5b9a679a3b596e9 /RenderScript.h
parent83325b9675e01acd982f9036cee12f01084b34cd (diff)
downloadrs-aad4bc5231dd7059fc5148b34a951117d9b5f4ad.tar.gz
Handle user message ID 0
Pass RS runtime errors back to java. throw exceptions for runtime errors. Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
Diffstat (limited to 'RenderScript.h')
-rw-r--r--RenderScript.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/RenderScript.h b/RenderScript.h
index 8c2081dc..20e289d3 100644
--- a/RenderScript.h
+++ b/RenderScript.h
@@ -79,13 +79,24 @@ RsContext rsContextCreate(RsDevice, uint32_t version);
RsContext rsContextCreateGL(RsDevice, uint32_t version, RsSurfaceConfig sc);
void rsContextDestroy(RsContext);
-uint32_t rsContextGetMessage(RsContext, void *data, size_t *receiveLen, size_t bufferLen, bool wait);
+enum RsMessageToClientType {
+ RS_MESSAGE_TO_CLIENT_NONE = 0,
+ RS_MESSAGE_TO_CLIENT_EXCEPTION = 1,
+ RS_MESSAGE_TO_CLIENT_RESIZE = 2,
+ RS_MESSAGE_TO_CLIENT_ERROR = 3,
+ RS_MESSAGE_TO_CLIENT_USER = 4
+};
+
+RsMessageToClientType rsContextGetMessage(RsContext vrsc, void *data, size_t *receiveLen, uint32_t *subID, size_t bufferLen, bool wait);
+RsMessageToClientType rsContextPeekMessage(RsContext vrsc, size_t *receiveLen, uint32_t *subID, bool wait);
void rsContextInitToClient(RsContext);
void rsContextDeinitToClient(RsContext);
#define RS_MAX_TEXTURE 2
#define RS_MAX_ATTRIBS 16
+
+
enum RsDataType {
RS_TYPE_NONE,
RS_TYPE_FLOAT_16,