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

Issue 1954493002: Tweak multibuffer buffering strategy. (Closed)

Created:
4 years, 7 months ago by hubbe
Modified:
4 years, 7 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tweak multibuffer buffering strategy. Separate buffer size from pin range. Buffering is now calculated as follows: target buffer size is max(25Mb, 12 seconds * bitrate) prefetch_low is max(20Mb, 10 seconds * bitrate) prefetch_high is prefetch_low + 1Mb pin_backwards is min(2 seconds * bitrate, 25Mb - prefetch_high) pin_forwards is 21Mb This means that the target buffer size is equivialent to BufferedDataSource. Note that we pin 21Mb in front of the current location no matter what, this means that if we happen to have that data in the cache we temporarily go over the target buffer size to avoid freeing something and then re-fetch it right afterwards. BUG=608974 Committed: https://crrev.com/08d81e2c010c6ad0fddd9d389c3208c263d3e424 Cr-Commit-Position: refs/heads/master@{#391691}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -19 lines) Patch
M media/blink/multibuffer_data_source.cc View 1 1 chunk +14 lines, -5 lines 0 comments Download
M media/blink/multibuffer_reader.h View 2 chunks +9 lines, -1 line 0 comments Download
M media/blink/multibuffer_reader.cc View 1 3 chunks +10 lines, -8 lines 0 comments Download
M media/blink/multibuffer_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
hubbe
4 years, 7 months ago (2016-05-04 19:39:29 UTC) #2
DaleCurtis
The previous tests did not catch this issue, is there a new one you can ...
4 years, 7 months ago (2016-05-04 21:39:32 UTC) #4
DaleCurtis
Also, what was the practical effect of this bug?
4 years, 7 months ago (2016-05-04 21:39:47 UTC) #6
hubbe
> Also, what was the practical effect of this bug? The bug is that the ...
4 years, 7 months ago (2016-05-04 21:55:06 UTC) #7
DaleCurtis
lgtm
4 years, 7 months ago (2016-05-04 22:06:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954493002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954493002/20001
4 years, 7 months ago (2016-05-04 22:43:44 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-04 23:35:29 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 23:37:54 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/08d81e2c010c6ad0fddd9d389c3208c263d3e424
Cr-Commit-Position: refs/heads/master@{#391691}

Powered by Google App Engine
This is Rietveld 408576698