commit | c1d7b7f71ce1a55548d7e8bb32d728190e2ffd47 | [log] [tgz] |
---|---|---|
author | Yujie Qin <yujieqin@google.com> | Mon Feb 29 14:00:29 2016 +0100 |
committer | Yujie Qin <yujieqin@google.com> | Mon Feb 29 15:49:51 2016 +0100 |
tree | 5d40cb0846457ded4804103ec22a497ff815a783 | |
parent | 42d8b7d7abe4ecab049e020c3836dae97660dd4d [diff] |
Use SkFILEStream directly when possible When decoding from a file descriptor, if the descriptor is seekable and has no offset, use SkFILEStream directly instead of wrapping in an SkFrontBufferedStream. This will let the SkRawCodec take advantage of a seekable stream. One can see 2x speed up for RAW cases. Bug: 27097104 Change-Id: I369fbb3af1170c94ec7cd9bb35e8e0007dde9fd5