Allocation API update.

Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
This commit is contained in:
Jason Sams
2010-12-08 16:14:36 -08:00
parent af8962e48e
commit 5476b450e5
28 changed files with 402 additions and 528 deletions

View File

@ -52,6 +52,9 @@ class BaseObj {
if (mDestroyed) {
throw new RSInvalidStateException("using a destroyed object.");
}
if (mID == 0) {
throw new RSRuntimeException("Internal error: Object id 0.");
}
return mID;
}