commit | e71a0f7751a034bf561ffa9e22e53946a1b358c4 | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@google.com> | Fri Sep 11 14:05:11 2020 -0400 |
committer | Leon Scroggins <scroggo@google.com> | Tue Sep 15 15:55:55 2020 +0000 |
tree | aabf755a940a8e632c230d368e520cf17595d509 | |
parent | eb91df1da112e1b1be1a6a0d06d56bc557c9de50 [diff] |
Add SkFILEStream constructor which takes a size. Bug: 166069819 Test: ImageDecoderTest Allows the user to limit the stream to a subset of the entire file. SkFILEStream uses the current FILE position as the base position for the stream; this allows the user to further limit the length of the stream to a range of bytes in the file. cherry-pick from https://skia-review.googlesource.com/c/skia/+/316357 Merged-In: I7f66558c9253d991d56fb7acf7835f514f09a571 Change-Id: I36131ff19e75b65d501eabdfd9368f8fbb2e177f