diff options
author | Jason Sams <jsams@google.com> | 2013-08-29 21:24:28 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-29 21:24:28 +0000 |
commit | 6b115980483ec20cc3f7817c76dfea18c49a48f3 (patch) | |
tree | 62222f74ca0b127c46848d76a7a551d47e2e7e95 /graphics | |
parent | a78d9a24d97818a6c9c071483d7854b560ecf228 (diff) | |
parent | 42ef238208679813daa204bf110f776ab02c2beb (diff) | |
download | frameworks_base-6b115980483ec20cc3f7817c76dfea18c49a48f3.zip frameworks_base-6b115980483ec20cc3f7817c76dfea18c49a48f3.tar.gz frameworks_base-6b115980483ec20cc3f7817c76dfea18c49a48f3.tar.bz2 |
Merge "Unhide USAGE_IO_INPUT functions" into klp-dev
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/renderscript/Allocation.java | 14 |
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; |