summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/Allocation.java
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2012-10-05 15:00:45 -0700
committerTim Murray <timmurray@google.com>2012-10-05 16:15:16 -0700
commitbc254b959744b21fd8cb9a7bf72ee3d1ae9cbba1 (patch)
tree1067ee1657641d4a8b38534ea3dd89fe0b9eb6bb /graphics/java/android/renderscript/Allocation.java
parentf3ca25eff61798628ee682f2e793058c9d824721 (diff)
add resize2D to Java API
Change-Id: I91c0d2292486d63b93f8b07a9ec0137fe020ac21
Diffstat (limited to 'graphics/java/android/renderscript/Allocation.java')
-rw-r--r--graphics/java/android/renderscript/Allocation.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java
index 10ccb87407ad..1593b7730a8f 100644
--- a/graphics/java/android/renderscript/Allocation.java
+++ b/graphics/java/android/renderscript/Allocation.java
@@ -971,11 +971,10 @@ public class Allocation extends BaseObj {
*
* A new type will be created with the new dimension.
*
- * @hide
* @param dimX The new size of the allocation.
* @param dimY The new size of the allocation.
*/
- public void resize(int dimX, int dimY) {
+ public synchronized void resize(int dimX, int dimY) {
if ((mType.getZ() > 0) || mType.hasFaces() || mType.hasMipmaps()) {
throw new RSInvalidStateException(
"Resize only support for 2D allocations at this time.");