Yujie Qin c1d7b7f71c 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
2016-02-29 15:49:51 +01:00
..
2015-10-06 15:18:40 -07:00