From 739c8263a10d34f5acba7fce2052012d1545d10b Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 11 Apr 2013 18:07:52 -0700 Subject: USAGE_IO_INPUT buffer notifications Change-Id: I6ec0508089029da9ed118127f0c13b7b189ef5e9 --- graphics/java/android/renderscript/RenderScript.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'graphics/java/android/renderscript/RenderScript.java') diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java index d5af2767bb40..d87ca32fdc52 100644 --- a/graphics/java/android/renderscript/RenderScript.java +++ b/graphics/java/android/renderscript/RenderScript.java @@ -966,6 +966,7 @@ public class RenderScript { static final int RS_MESSAGE_TO_CLIENT_RESIZE = 2; static final int RS_MESSAGE_TO_CLIENT_ERROR = 3; static final int RS_MESSAGE_TO_CLIENT_USER = 4; + static final int RS_MESSAGE_TO_CLIENT_NEW_BUFFER = 5; static final int RS_ERROR_FATAL_UNKNOWN = 0x1000; @@ -1025,6 +1026,11 @@ public class RenderScript { continue; } + if (msg == RS_MESSAGE_TO_CLIENT_NEW_BUFFER) { + Allocation.sendBufferNotification(subID); + continue; + } + // 2: teardown. // But we want to avoid starving other threads during // teardown by yielding until the next line in the destructor -- cgit v1.2.3