summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-04-11 19:23:52 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-11 19:23:52 -0700
commitd4b1b98dfd9090cf8ccf7e713d0cca9049cb10a2 (patch)
tree8b257891dfe3f8bbca2f39a7e6fde8b1aeb0946f /graphics/java/android/renderscript/RenderScript.java
parent64ef8ed88c435108bec7f780fb9d8378422c5751 (diff)
parenta2f289a40db821c1961e16c2f4acc5785dbb3394 (diff)
am a2f289a4: Merge "USAGE_IO_INPUT buffer notifications" into jb-mr2-dev
* commit 'a2f289a40db821c1961e16c2f4acc5785dbb3394': USAGE_IO_INPUT buffer notifications
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