Boundary checks for rsAllocationCopy[12]DRange
Performs the following checks:
* On X and Y ranges
* On the given LOD vs. available LODs
* On expected vs. given dimensionality of rs_allocations
Report error using setError() under all context types while
only Debug Context requires so.
Some implementations call rsrAllocationCopy[12]DRange directly, bypassing
top-level rsAllocationCopy[12]DRange. Thus the boundary checks are placed
at rsr level for now.
Bug: http://b/19800472
Test: cts RenderscriptTest and RsTest for angler_aosp-eng
Change-Id: I5c57cee5ed106e8f594f04abfc27a4e127d56a69
1 file changed