DescriptionBufferedDataSource: don't reallocate buffer unnecessarily
When buffer size is different than kInitialReadBufferSize then
intermediate buffer would be reallocated on each Read() operation
which is unnecessary.
Committed: https://crrev.com/360e2c0067dec6b1b2c25c654d3f9e4a7f257a34
Cr-Commit-Position: refs/heads/master@{#296469}
Patch Set 1 #
Total comments: 1
Patch Set 2 : scoped_ptr<uint8[]> to vector<uint8> #
Total comments: 6
Patch Set 3 : follow-up #
Messages
Total messages: 12 (3 generated)
|