Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Issue 594733004: BufferedDataSource: don't reallocate buffer unnecessarily (Closed)

Created:
6 years, 3 months ago by mmal
Modified:
6 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

BufferedDataSource: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M media/blink/buffered_data_source.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/blink/buffered_data_source.cc View 1 2 3 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
mmal
PTAL
6 years, 3 months ago (2014-09-23 20:10:44 UTC) #2
xhwang
https://codereview.chromium.org/594733004/diff/1/media/blink/buffered_data_source.cc File media/blink/buffered_data_source.cc (right): https://codereview.chromium.org/594733004/diff/1/media/blink/buffered_data_source.cc#newcode319 media/blink/buffered_data_source.cc:319: intermediate_read_buffer_size_ = size; Thanks for fixing this! The fix ...
6 years, 3 months ago (2014-09-23 20:56:22 UTC) #3
mmal
On 2014/09/23 20:56:22, xhwang wrote: > https://codereview.chromium.org/594733004/diff/1/media/blink/buffered_data_source.cc > File media/blink/buffered_data_source.cc (right): > > https://codereview.chromium.org/594733004/diff/1/media/blink/buffered_data_source.cc#newcode319 > ...
6 years, 3 months ago (2014-09-24 14:06:19 UTC) #5
xhwang
lgtm % comments Again, thanks for fixing this! https://codereview.chromium.org/594733004/diff/40001/media/blink/buffered_data_source.cc File media/blink/buffered_data_source.cc (right): https://codereview.chromium.org/594733004/diff/40001/media/blink/buffered_data_source.cc#newcode105 media/blink/buffered_data_source.cc:105: intermediate_read_buffer_.resize(kInitialReadBufferSize); ...
6 years, 2 months ago (2014-09-24 16:27:16 UTC) #6
xhwang
https://codereview.chromium.org/594733004/diff/40001/media/blink/buffered_data_source.cc File media/blink/buffered_data_source.cc (right): https://codereview.chromium.org/594733004/diff/40001/media/blink/buffered_data_source.cc#newcode317 media/blink/buffered_data_source.cc:317: intermediate_read_buffer_.resize(size); On 2014/09/24 16:27:16, xhwang wrote: > So the ...
6 years, 2 months ago (2014-09-24 16:39:28 UTC) #7
mmal
On 2014/09/24 16:39:28, xhwang wrote: > https://codereview.chromium.org/594733004/diff/40001/media/blink/buffered_data_source.cc > File media/blink/buffered_data_source.cc (right): > > https://codereview.chromium.org/594733004/diff/40001/media/blink/buffered_data_source.cc#newcode317 > ...
6 years, 2 months ago (2014-09-24 17:08:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594733004/60001
6 years, 2 months ago (2014-09-24 17:22:08 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:60001) as 61a54d95a8497de5bffae564cd4bc361305bc821
6 years, 2 months ago (2014-09-24 18:23:12 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-09-24 18:24:57 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/360e2c0067dec6b1b2c25c654d3f9e4a7f257a34
Cr-Commit-Position: refs/heads/master@{#296469}

Powered by Google App Engine
This is Rietveld 408576698