summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/AllocationAdapter.java
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-07-08 13:52:30 -0700
committerJason Sams <rjsams@android.com>2011-07-08 13:52:30 -0700
commit48fe534838d8b9d10f98ea2662eec258320ab4e7 (patch)
tree977813228deab513fe5874b6ec7b65209741a26c /graphics/java/android/renderscript/AllocationAdapter.java
parentedbff0df929dab3a8c701de7b1d91fc7907348ed (diff)
Add error checks for AllocationAdapters being used in unsupported ways.
Change-Id: If6506e04d65a7b3d79203ac7a20a7961368ef04f
Diffstat (limited to 'graphics/java/android/renderscript/AllocationAdapter.java')
-rw-r--r--graphics/java/android/renderscript/AllocationAdapter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/AllocationAdapter.java b/graphics/java/android/renderscript/AllocationAdapter.java
index ca5246ac4b1d..d38f2df37e15 100644
--- a/graphics/java/android/renderscript/AllocationAdapter.java
+++ b/graphics/java/android/renderscript/AllocationAdapter.java
@@ -31,7 +31,8 @@ public class AllocationAdapter extends Allocation {
}
int getID() {
- return mAdaptedAllocation.getID();
+ throw new RSInvalidStateException(
+ "This operation is not supported with adapters at this time.");
}
/**