summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-04-12 02:20:10 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-12 02:20:11 +0000
commita2f289a40db821c1961e16c2f4acc5785dbb3394 (patch)
tree78f96aa3d8b4a513d9a2df7757389324022420f5 /graphics/java/android/renderscript/RenderScript.java
parent5adae45addad702de4393a68b6236b1d528c58d6 (diff)
parent739c8263a10d34f5acba7fce2052012d1545d10b (diff)
Merge "USAGE_IO_INPUT buffer notifications" into jb-mr2-dev
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r--graphics/java/android/renderscript/RenderScript.java6
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