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

Issue 10694098: Use maximum capacity instead of a ratio of capacity for BufferedResourceLoader. (Closed)

Created:
8 years, 5 months ago by scherkus (not reviewing)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Use maximum capacity instead of a ratio of capacity for BufferedResourceLoader. This change essentially moves internally buffered network data from WebURLLoader to BufferedResourceLoader as soon as there's capacity instead of waiting for an arbitrary threshold. There's no fear of spamming progress events at a higher frequency since progress events are limited to firing at a minimum interval of 350ms. BUG=124719 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=146133

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase to trunk #

Patch Set 3 : comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -50 lines) Patch
M webkit/media/buffered_data_source.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/media/buffered_data_source_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/buffered_resource_loader.h View 1 2 2 chunks +5 lines, -7 lines 0 comments Download
M webkit/media/buffered_resource_loader.cc View 1 2 4 chunks +6 lines, -19 lines 2 comments Download
M webkit/media/buffered_resource_loader_unittest.cc View 1 2 8 chunks +11 lines, -19 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scherkus (not reviewing)
Not 100% I want to land this. Need to test out how often we end ...
8 years, 5 months ago (2012-07-06 15:34:28 UTC) #1
Ami GONE FROM CHROMIUM
To be clear, this CL is equivalent to setting kDisableDeferThreshold to 1.0 (except it'll be ...
8 years, 5 months ago (2012-07-09 17:27:40 UTC) #2
scherkus (not reviewing)
updated change is mostly driven by code simplification doing some analysis it ends up being ...
8 years, 5 months ago (2012-07-11 00:49:37 UTC) #3
Ami GONE FROM CHROMIUM
lgtm http://codereview.chromium.org/10694098/diff/1005/webkit/media/buffered_resource_loader.cc File webkit/media/buffered_resource_loader.cc (right): http://codereview.chromium.org/10694098/diff/1005/webkit/media/buffered_resource_loader.cc#newcode646 webkit/media/buffered_resource_loader.cc:646: bool BufferedResourceLoader::ShouldDisableDefer() const { Didn't notice until now, ...
8 years, 5 months ago (2012-07-11 05:05:58 UTC) #4
scherkus (not reviewing)
8 years, 5 months ago (2012-07-11 18:15:38 UTC) #5
http://codereview.chromium.org/10694098/diff/1005/webkit/media/buffered_resou...
File webkit/media/buffered_resource_loader.cc (right):

http://codereview.chromium.org/10694098/diff/1005/webkit/media/buffered_resou...
webkit/media/buffered_resource_loader.cc:646: bool
BufferedResourceLoader::ShouldDisableDefer() const {
On 2012/07/11 05:05:58, Ami Fischman wrote:
> Didn't notice until now, but it's hilarious that we have ShouldEnable and
> ShouldDisable and they each return a bool (and have very similar but inverted
> logic).  IWBN to collapse them into a single ShouldDefer().  Another day,
> another CL.

lol.

see http://codereview.chromium.org/10694138/

Powered by Google App Engine
This is Rietveld 408576698