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

Issue 1971373002: Fix progress reporting for multibuffers to report progress for every byte we receive. (Closed)

Created:
4 years, 7 months ago by hubbe
Modified:
4 years, 7 months ago
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

Fix progress reporting for multibuffers to report progress for every byte we receive. BUG=612549 Committed: https://crrev.com/1d3e7432173300d1f65be0ec988178b8aae80726 Cr-Commit-Position: refs/heads/master@{#393609}

Patch Set 1 #

Total comments: 4

Patch Set 2 : documentation added #

Total comments: 6

Patch Set 3 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -12 lines) Patch
M media/blink/multibuffer.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M media/blink/multibuffer.cc View 2 chunks +12 lines, -1 line 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 3 chunks +7 lines, -2 lines 0 comments Download
M media/blink/multibuffer_reader.cc View 1 2 1 chunk +8 lines, -7 lines 0 comments Download
M media/blink/multibuffer_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider.cc View 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
hubbe
4 years, 7 months ago (2016-05-12 23:24:15 UTC) #2
wolenetz
Initial comments. Also, how frequently would this extra per-byte notification potentially occur? What's the performance ...
4 years, 7 months ago (2016-05-12 23:41:17 UTC) #3
hubbe
> Also, how frequently would this extra per-byte notification > potentially occur? It depends on ...
4 years, 7 months ago (2016-05-13 00:05:15 UTC) #4
hubbe
4 years, 7 months ago (2016-05-13 17:20:32 UTC) #6
liberato (no reviews please)
lgtm https://codereview.chromium.org/1971373002/diff/20001/media/blink/multibuffer.h File media/blink/multibuffer.h (right): https://codereview.chromium.org/1971373002/diff/20001/media/blink/multibuffer.h#newcode118 media/blink/multibuffer.h:118: // return false even if AvailableBytes() returns true. ...
4 years, 7 months ago (2016-05-13 17:45:55 UTC) #7
hubbe
https://codereview.chromium.org/1971373002/diff/20001/media/blink/multibuffer.h File media/blink/multibuffer.h (right): https://codereview.chromium.org/1971373002/diff/20001/media/blink/multibuffer.h#newcode118 media/blink/multibuffer.h:118: // return false even if AvailableBytes() returns true. On ...
4 years, 7 months ago (2016-05-13 17:51:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971373002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971373002/40001
4 years, 7 months ago (2016-05-13 17:52:18 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-13 19:42:28 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/1d3e7432173300d1f65be0ec988178b8aae80726 Cr-Commit-Position: refs/heads/master@{#393609}
4 years, 7 months ago (2016-05-13 19:44:34 UTC) #14
DaleCurtis
Hmm, how frequent is this? If it's now become a high frequency thing, we should ...
4 years, 7 months ago (2016-05-16 17:09:36 UTC) #16
hubbe
On 2016/05/16 17:09:36, DaleCurtis wrote: > Hmm, how frequent is this? If it's now become ...
4 years, 7 months ago (2016-05-16 17:17:32 UTC) #17
liberato (no reviews please)
On 2016/05/16 17:17:32, hubbe wrote: > On 2016/05/16 17:09:36, DaleCurtis wrote: > > Hmm, how ...
4 years, 7 months ago (2016-05-16 17:22:51 UTC) #18
hubbe
On 2016/05/16 17:22:51, liberato wrote: > On 2016/05/16 17:17:32, hubbe wrote: > > On 2016/05/16 ...
4 years, 7 months ago (2016-05-16 17:55:51 UTC) #19
DaleCurtis
Lets figure out if this is hurting power or not and make the call then. ...
4 years, 7 months ago (2016-05-16 18:12:01 UTC) #20
liberato (no reviews please)
On 2016/05/16 18:12:01, DaleCurtis wrote: > Lets figure out if this is hurting power or ...
4 years, 7 months ago (2016-05-16 18:16:42 UTC) #21
wolenetz
4 years, 7 months ago (2016-05-16 20:05:57 UTC) #22
Message was sent while issue was closed.
On 2016/05/13 00:05:15, hubbe wrote:
> > Also, how frequently would this extra per-byte notification > potentially
> occur?
> 
> It depends on the network stack, but it's likely to occur 5-20 times per
second.
> 
> > What's the performance cost if this is relatively frequent?
> 
> Cost should be pretty low, the calls are not overly frequent. They do some
logn
> operations which are not exactly free, but I'd be surprised if they would show
> up in any of our measurements.
> 
> https://codereview.chromium.org/1971373002/diff/1/media/blink/multibuffer.h
> File media/blink/multibuffer.h (right):
> 
>
https://codereview.chromium.org/1971373002/diff/1/media/blink/multibuffer.h#n...
> media/blink/multibuffer.h:256: int64_t UncommittedBytesAt(const BlockId&
block);
> On 2016/05/12 23:41:17, wolenetz wrote:
> > nit: document this public method please.
> 
> Done.
> 
>
https://codereview.chromium.org/1971373002/diff/1/media/blink/multibuffer_dat...
> File media/blink/multibuffer_data_source_unittest.cc (right):
> 
>
https://codereview.chromium.org/1971373002/diff/1/media/blink/multibuffer_dat...
> media/blink/multibuffer_data_source_unittest.cc:980: ReceiveData(kDataSize /
2);
> On 2016/05/12 23:41:17, wolenetz wrote:
> > I'm unfamiliar with this code. Naively, it looks like we've simulated the
> > fetching of just kDataSize across these two ReceiveData() calls. Why then do
> we
> > appear to expect to have buffered more than just kDataSize?
> 
> InitializeWith206Response() also calls receivedata, so we've already received
> one block.

I see. Thanks.

Powered by Google App Engine
This is Rietveld 408576698