diff options
author | Jason Sams <jsams@google.com> | 2013-04-11 18:07:52 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2013-04-11 18:14:26 -0700 |
commit | 739c8263a10d34f5acba7fce2052012d1545d10b (patch) | |
tree | 454a3ae0a166bf36ed1a48ef8e2be4d4dcec9e78 /graphics/java/android/renderscript/RenderScript.java | |
parent | 0cb19909211cefc5874c0bcb02335d7b0e988328 (diff) |
USAGE_IO_INPUT buffer notifications
Change-Id: I6ec0508089029da9ed118127f0c13b7b189ef5e9
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r-- | graphics/java/android/renderscript/RenderScript.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 |