diff options
author | Leon Scroggins III <scroggo@google.com> | 2018-05-07 16:20:13 -0400 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2018-05-07 16:28:16 -0400 |
commit | 0c699add019cde2dc32a5f090b20857fc1c753f2 (patch) | |
tree | dcc9de5923f649b42330441810e26002d7450a74 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0492eefece5ba2bb1d9ab5b3af7e350fd50343e9 (diff) |
Allow ImageDecoder to read SkFILEStream directly
Bug: 78866720
Test: Manual
If the input stream is seekable, SkGifCodec will read from it directly.
If not, it has to copy (parts of) the input in order re-decode when it
loops. Directly use the seekable SkFILEStream so that SkGifCodec skips
the copy, saving memory proportional to the size of the file.
Depends on a change in upstream Skia which allows SkFILEStream to treat
the initial offset as the beginning of the file:
https://skia-review.googlesource.com/c/skia/+/126511
Change-Id: Iefb58785157ba684ad3603778175b3dba97567b2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions