diff options
author | Miao Wang <miaowang@google.com> | 2016-03-29 17:52:36 -0700 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2016-03-29 18:00:55 -0700 |
commit | 2d69d1633da4f6e03801f8e7ca0414ac7dc7b746 (patch) | |
tree | 11a3c09d34cbaca83dedc258fdf859a8ced3ec52 | |
parent | 9964831bafb124cb74b59d7be214028a93411412 (diff) | |
download | rs-2d69d1633da4f6e03801f8e7ca0414ac7dc7b746.tar.gz |
[RenderScript] Update documentation for Allocation.setAutoPadding().
Bug: 26862970
Change-Id: I91b9205641a8bfb0b6fed903195257f5172d4227
(cherry picked from commit 4dadd8068cd8a4065abe1bb7d394a0d93861af9f)
-rw-r--r-- | support/java/src/android/support/v8/renderscript/Allocation.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/support/java/src/android/support/v8/renderscript/Allocation.java b/support/java/src/android/support/v8/renderscript/Allocation.java index c8a8854a..21a68a42 100644 --- a/support/java/src/android/support/v8/renderscript/Allocation.java +++ b/support/java/src/android/support/v8/renderscript/Allocation.java @@ -269,7 +269,13 @@ public class Allocation extends BaseObj { } /** - * Enable/Disable AutoPadding for Vec3 elements. + * Enable/Disable AutoPadding for Vec3 Elements. + * + * <p> Vec3 Elements, such as {@link Element#U8_3} are treated as Vec4 Elements + * with the fourth vector element used as padding. Enabling the AutoPadding feature + * will automatically add/remove the padding when you copy to/from an Allocation + * with a Vec3 Element. + * <p> By default: Disabled. * * @param useAutoPadding True: enable AutoPadding; False: disable AutoPadding * |