summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAshok Bhat <ashok.bhat@arm.com>2014-03-05 15:06:05 +0000
committerAshok Bhat <ashok.bhat@arm.com>2014-03-06 13:06:40 +0000
commitfef85ef152ab176fd96dbe3047c8025136fa8560 (patch)
treefe927ab999f123c584cfc7aa7e77bdfcba6c851f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2383f2200ab0c2dbd71708b5c1fb6af98db408fa (diff)
Cast CallVoidMethod's size_t parameters to jint
offset and size variables are passed to set method of MediaCodec.BufferInfo java class. The corresponding actual parameters of set method are of int type in java. These variables are expected to fit in jint as they indicate the offset and size of data in a media codec buffer. The variables are cast to jint, prior to passing to java method, to avoid problems caused by automatic type promotion of parameters when passed to a variadic function, CallVoidMethod. Change-Id: I39e202306f1b7122448c947f6d275f00251bb33a Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions