summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-08-29 14:28:33 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-29 14:28:33 -0700
commit7407850c8a0784b44212fefbdbc69385d00e5bd2 (patch)
tree905231004980648b9ec4ec30adc4ae4e4b46dc67 /graphics
parentdc57bbebb24bd7b8ed83c456db6beb1d94f3b6c5 (diff)
parent1a81725ececffe68af466d1f8dcea56b86a84247 (diff)
downloadframeworks_base-7407850c8a0784b44212fefbdbc69385d00e5bd2.zip
frameworks_base-7407850c8a0784b44212fefbdbc69385d00e5bd2.tar.gz
frameworks_base-7407850c8a0784b44212fefbdbc69385d00e5bd2.tar.bz2
am 1a81725e: am 6b115980: Merge "Unhide USAGE_IO_INPUT functions" into klp-dev
* commit '1a81725ececffe68af466d1f8dcea56b86a84247': Unhide USAGE_IO_INPUT functions
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/renderscript/Allocation.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java
index 7d05a74..ca72c25 100644
--- a/graphics/java/android/renderscript/Allocation.java
+++ b/graphics/java/android/renderscript/Allocation.java
@@ -80,7 +80,7 @@ public class Allocation extends BaseObj {
int mCurrentCount;
static HashMap<Integer, Allocation> mAllocationMap =
new HashMap<Integer, Allocation>();
- IoInputNotifier mBufferNotifier;
+ OnBufferAvailableListener mBufferNotifier;
/**
* The usage of the Allocation. These signal to RenderScript where to place
@@ -1838,26 +1838,22 @@ public class Allocation extends BaseObj {
}
/**
- * @hide
- *
* Interface to handle notification when new buffers are available via
* {@link #USAGE_IO_INPUT}. An application will receive one notification
* when a buffer is available. Additional buffers will not trigger new
* notifications until a buffer is processed.
*/
- public interface IoInputNotifier {
+ public interface OnBufferAvailableListener {
public void onBufferAvailable(Allocation a);
}
/**
- * @hide
- *
* Set a notification handler for {@link #USAGE_IO_INPUT}.
*
- * @param callback instance of the IoInputNotifier class to be called
- * when buffer arrive.
+ * @param callback instance of the OnBufferAvailableListener
+ * class to be called when buffer arrive.
*/
- public void setIoInputNotificationHandler(IoInputNotifier callback) {
+ public void setOnBufferAvailableListener(OnBufferAvailableListener callback) {
synchronized(mAllocationMap) {
mAllocationMap.put(new Integer(getID(mRS)), this);
mBufferNotifier = callback;