• Primiano Tucci's avatar
    Cherry-pick: [Android WebView] Make InputStreamImpl::Read fill the IOBuffer. · 0d097792
    Primiano Tucci authored
    Cherry-pick of chromium crrev.com/24082006
    
    BUG: 10769152
    
    Original description:
    
    [Android WebView] Make InputStreamImpl::Read fill the IOBuffer.
    
    This CL improves the performances of InputStreamImpl::Read. The
    previous implementation was limiting each Read to transfer at most
    4k. This CL makes it possible to fill, in a single run, the IOBuffer
    up to the length provided by the caller.
    In practice this will reduces the number of thread hops and IPCs.
    Note: the max transfer size, at this point, is imited onlt by the
    kMaxAllocationSize constant defined in async_resounrce_handler.cc.
    
    Change-Id: I5c733b845641e98292d78400fefa749c02a8a0ef
    0d097792
input_stream_unittest.cc 3.91 KB