summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/renderscript/Allocation.java
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-02-22 13:57:36 -0800
committerJason Sams <jsams@google.com>2013-02-22 13:57:36 -0800
commitc089c2fc00054d6dde24b98e78226923a5364564 (patch)
tree52f33defb1f135cf3d96e1ec3d5edbfa1b2494d6 /graphics/java/android/renderscript/Allocation.java
parent72226e0543461133b9e177a3e78ae50b0c65e797 (diff)
downloadframeworks_base-c089c2fc00054d6dde24b98e78226923a5364564.zip
frameworks_base-c089c2fc00054d6dde24b98e78226923a5364564.tar.gz
frameworks_base-c089c2fc00054d6dde24b98e78226923a5364564.tar.bz2
Fix build break.
Change-Id: I362c96787482bc8daee7dd4a01817ab7ed79b730
Diffstat (limited to 'graphics/java/android/renderscript/Allocation.java')
-rw-r--r--graphics/java/android/renderscript/Allocation.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java
index 2f3e48c..a99cdad 100644
--- a/graphics/java/android/renderscript/Allocation.java
+++ b/graphics/java/android/renderscript/Allocation.java
@@ -1261,6 +1261,13 @@ public class Allocation extends BaseObj {
}
/**
+ * @hide
+ */
+ public void setSurfaceTexture(SurfaceTexture st) {
+ setSurface(new Surface(st));
+ }
+
+ /**
* Associate a surface for io output with this allocation
*
* @param sur Surface to associate with allocation