From ebfcdb935e86efcd7cda7b94785519647e135292 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Tue, 29 Mar 2016 15:56:55 -0700 Subject: [RenderScript] Update documentation for Allocation.setAutoPadding(). Bug: 26862970 Change-Id: Iaa88ac0266e5d2cac2837f1d13353aacc6177274 (cherry picked from commit 9ee7607615563c6b480968470e69cb58d0996cb8) --- rs/java/android/renderscript/Allocation.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'rs/java') diff --git a/rs/java/android/renderscript/Allocation.java b/rs/java/android/renderscript/Allocation.java index 57c45a763e41..b9c5738a0936 100644 --- a/rs/java/android/renderscript/Allocation.java +++ b/rs/java/android/renderscript/Allocation.java @@ -296,8 +296,13 @@ public class Allocation extends BaseObj { } /** - * Enable/Disable AutoPadding for Vec3 elements. - * By default: Diabled. + * Enable/Disable AutoPadding for Vec3 Elements. + * + *

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. + *

By default: Disabled. * * @param useAutoPadding True: enable AutoPadding; False: disable AutoPadding * -- cgit v1.2.3-59-g8ed1b