summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2018-03-14 16:07:43 -0400
committerLeon Scroggins III <scroggo@google.com>2018-03-21 12:55:46 -0400
commit1d2bf2b846f0a98f7403bbc791adb2969685d87a (patch)
tree25861f62e2badf62c654d22b6b3f039b649dad75 /rs/java/android/renderscript/ProgramStore.java
parentf344b3ead51d3ac96c60223cbc9a4a0bc7c61576 (diff)
Re-write onPartialImage API
Bug: 73788969 Test: If9e27a6ce2604128a619bc4843d62711f94b4d87 Add a new Exception subclass that contains information about the type of error, and the original Exception, if any. Remove the old IncompleteException class. If the decode creates a partial image, pass the information up to Java, where we create the new Exception and pass it to the callback and/or throw it. Rewrite nDecodeBitmap to always take the ImageDecoder as a parameter for this callback, and simply use a boolean to determine whether to call onPostProcess Check for exceptions in some overlooked cases in native code, and route to the new type. Remove FIXME to avoid parsing the whole image. In my limited testing, it didn't seem to speed anything up, and this should be called in a background thread anyway. Parsing now also ensures that we've read the stream when we can have a chance to handle the exception from the right place. Remove fixme for b/70626068, which has been marked as WontFix. Add a TestApi for testing an Exception thrown by an InputStream. Remove onPartialImage from hiddenapi-light-greylist.txt to fix the build error this change introduces. onPartialImage was erroneously added to the list. Change-Id: I12f69857328e63c993bd669412b06addeb6a74f1
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions