Chromium Code Reviews| Index: xfa/fgas/crt/fgas_stream.cpp |
| diff --git a/xfa/fgas/crt/fgas_stream.cpp b/xfa/fgas/crt/fgas_stream.cpp |
| index c3850c00bbe36d7711e113d72c28879aba9d542b..73d3d0b6613feae5a97582cb39768825b2546ca2 100644 |
| --- a/xfa/fgas/crt/fgas_stream.cpp |
| +++ b/xfa/fgas/crt/fgas_stream.cpp |
| @@ -1452,10 +1452,8 @@ IFX_Stream* CFX_Stream::CreateSharedStream(uint32_t dwAccess, |
| return pShared; |
| } |
| -IFX_SeekableReadStream* FX_CreateFileRead(IFX_Stream* pBaseStream, |
| - bool bReleaseStream) { |
| - ASSERT(pBaseStream); |
| - return new CFGAS_FileRead(pBaseStream, bReleaseStream); |
| +IFX_SeekableReadStream* IFX_Stream::MakeSeekableReadStream() { |
|
npm
2016/11/30 22:58:00
Why make here instead of Create?
Tom Sepez
2016/11/30 23:09:44
Layering. IFX_SeekableReadStream is in core/ and
|
| + return new CFGAS_FileRead(this, false); |
| } |
| CFGAS_FileRead::CFGAS_FileRead(IFX_Stream* pStream, bool bReleaseStream) |