diff options
author | Jason Sams <rjsams@android.com> | 2010-11-22 16:20:16 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-11-22 16:20:16 -0800 |
commit | 87319de2b16a185cf360827c96a42cf1fcaae744 (patch) | |
tree | ecce496901a0e93251956185fba0e228b23040c1 /RenderScript.h | |
parent | c9110b6b9fba43f2f73af54b1a37e4f5d1aa3146 (diff) | |
download | rs-87319de2b16a185cf360827c96a42cf1fcaae744.tar.gz |
More error checks
Change-Id: Id2b9ab7a76bbdf2ed745f5e36e552dc9b101982f
Diffstat (limited to 'RenderScript.h')
-rw-r--r-- | RenderScript.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/RenderScript.h b/RenderScript.h index 0ed129ff..f00f748b 100644 --- a/RenderScript.h +++ b/RenderScript.h @@ -236,11 +236,16 @@ enum RsPrimitive { }; enum RsError { - RS_ERROR_NONE, - RS_ERROR_BAD_SHADER, - RS_ERROR_BAD_SCRIPT, - RS_ERROR_BAD_VALUE, - RS_ERROR_OUT_OF_MEMORY + RS_ERROR_NONE = 0, + RS_ERROR_BAD_SHADER = 1, + RS_ERROR_BAD_SCRIPT = 2, + RS_ERROR_BAD_VALUE = 3, + RS_ERROR_OUT_OF_MEMORY = 4, + RS_ERROR_DRIVER = 5, + + RS_ERROR_FATAL_UNKNOWN = 0x1000, + RS_ERROR_FATAL_DRIVER = 0x1001, + RS_ERROR_FATAL_PROGRAM_LINK = 0x1002 }; enum RsAnimationInterpolation { |