From 42ef238208679813daa204bf110f776ab02c2beb Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 29 Aug 2013 13:30:59 -0700 Subject: Unhide USAGE_IO_INPUT functions Change-Id: I9c1a7e5d65adee133b99b9a94729ab0b3d5a097f --- graphics/java/android/renderscript/Allocation.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'graphics') diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java index 362b586..1a2f35e 100644 --- a/graphics/java/android/renderscript/Allocation.java +++ b/graphics/java/android/renderscript/Allocation.java @@ -79,7 +79,7 @@ public class Allocation extends BaseObj { int mCurrentCount; static HashMap mAllocationMap = new HashMap(); - IoInputNotifier mBufferNotifier; + OnBufferAvailableListener mBufferNotifier; /** * The usage of the Allocation. These signal to RenderScript where to place @@ -1825,26 +1825,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; -- cgit v1.1