summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/renderscript
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2012-03-29 17:58:15 -0700
committerJason Sams <jsams@google.com>2012-03-29 17:58:15 -0700
commitc5f519c5ec57400f04f1d0bdc69f7bfddf47f8cb (patch)
treecea2f997f444546030cb1826bf48b1454397491a /graphics/java/android/renderscript
parent75ec67848c06c37ff545fffb8a02fcb23a71209d (diff)
downloadframeworks_base-c5f519c5ec57400f04f1d0bdc69f7bfddf47f8cb.zip
frameworks_base-c5f519c5ec57400f04f1d0bdc69f7bfddf47f8cb.tar.gz
frameworks_base-c5f519c5ec57400f04f1d0bdc69f7bfddf47f8cb.tar.bz2
Rename ioReceive and ioSend
First checkin of Allocation IO test Change-Id: I26379e442796caab95a089dbb42b02192f4cc563
Diffstat (limited to 'graphics/java/android/renderscript')
-rw-r--r--graphics/java/android/renderscript/Allocation.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java
index 6b59b10..18a0a0c 100644
--- a/graphics/java/android/renderscript/Allocation.java
+++ b/graphics/java/android/renderscript/Allocation.java
@@ -365,7 +365,7 @@ public class Allocation extends BaseObj {
* @hide
*
*/
- public void ioSendOutput() {
+ public void ioSend() {
if ((mUsage & USAGE_IO_OUTPUT) == 0) {
throw new RSIllegalArgumentException(
"Can only send buffer if IO_OUTPUT usage specified.");
@@ -375,12 +375,20 @@ public class Allocation extends BaseObj {
}
/**
+ * Delete once code is updated.
+ * @hide
+ */
+ public void ioSendOutput() {
+ ioSend();
+ }
+
+ /**
* Receive the latest input into the Allocation.
*
* @hide
*
*/
- public void ioGetInput() {
+ public void ioReceive() {
if ((mUsage & USAGE_IO_INPUT) == 0) {
throw new RSIllegalArgumentException(
"Can only receive if IO_INPUT usage specified.");