diff options
author | Jeff Sharkey <jsharkey@android.com> | 2018-10-03 15:15:56 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2018-10-04 10:37:32 -0600 |
commit | 685c4aef821cd7f62276b9e93ee50606f45f692f (patch) | |
tree | c0fb10d88089e5192b04657ab123239708410687 /rs/java/android/renderscript/ProgramRaster.java | |
parent | cd084e45fb22e0fcfcedb71424affecc2b592bf7 (diff) |
Support custom creation of AFD for ImageDecoder.
ContentResolver.openTypedAssetFileDescriptor() has support for a
Bundle of options that can be used to communicate things like desired
thumbnail size, and also CancellationSignal to cancel large network
fetches when no longer needed.
Instead of adding all these to ImageDecoder, let developers provide
their own Callable<AssetFileDescriptor> so they can implement these
custom features.
Bug: 111268862
Test: atest cts/tests/tests/graphics/src/android/graphics/cts/ImageDecoderTest.java
Change-Id: I51c509962f50dd08be94507169355b5da54d6782
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions