diff options
| author | 2010-11-22 16:27:59 -0800 | |
|---|---|---|
| committer | 2010-11-22 16:27:59 -0800 | |
| commit | d2a5a0b584efd4bf2c44acadf99f6250f0f65927 (patch) | |
| tree | 9e68c2809895f18bde1ea0b1ff6815cd5c000f61 /libs/rs/RenderScript.h | |
| parent | 077b6ed354fa6f0fd8387e87cf3883d9ca252529 (diff) | |
| parent | add9d9633205f76cc34f04368b8482c2c369ba63 (diff) | |
Merge "More error checks"
Diffstat (limited to 'libs/rs/RenderScript.h')
| -rw-r--r-- | libs/rs/RenderScript.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libs/rs/RenderScript.h b/libs/rs/RenderScript.h index 0ed129ff96ca..f00f748b807a 100644 --- a/libs/rs/RenderScript.h +++ b/libs/rs/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 { |