summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-04-11 19:27:15 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-11 19:27:15 -0700
commitca22277d334baf077127a1dd84d1b3a048cba778 (patch)
tree49c49aed6fd57d0f0e4cf3766400172d419ca917 /graphics/java/android/renderscript/RenderScript.java
parentc797b40adefec76f6a32f4bf11506ff39d015da5 (diff)
parentd4b1b98dfd9090cf8ccf7e713d0cca9049cb10a2 (diff)
am d4b1b98d: am a2f289a4: Merge "USAGE_IO_INPUT buffer notifications" into jb-mr2-dev
* commit 'd4b1b98dfd9090cf8ccf7e713d0cca9049cb10a2': 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 656487f585b6..dd0274189be8 100644
--- a/graphics/java/android/renderscript/RenderScript.java
+++ b/graphics/java/android/renderscript/RenderScript.java
@@ -974,6 +974,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;
@@ -1033,6 +1034,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