summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2020-09-10 14:57:11 -0400
committerLeon Scroggins III <scroggo@google.com>2020-09-11 16:58:51 -0400
commitc3fda89b05b84755113ceeadd147714e5c4c5ef3 (patch)
tree5175c8a97d2715f956f8517e8bf0dba5648ba880 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent92d0655deab5e2ce24e749b65b4f6b4427dd2b7c (diff)
ImageDecoder: Use AssetFileDescriptor's length
Bug: 166069819 Test: ImageDecoderTest (cts) The contained asset may only be a subset of the AssetFileDescriptor. SkWebpCodec reads the entire stream into a contiguous block of memory. (This is because libwebp does not provide a streaming API for creating its demuxer.) If the AssetFileDescriptor contains data after the webp file, this wastes memory. In some cases, there may be a *lot* of data after the webp file, so this can use too much memory, particularly on low memory devices. Change-Id: I8d8e520f43a7ef0d7e4534ef165d8c7e4d2a0b55
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions