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

Issue 1829163002: Lazily prune the multibuffer block cache. (Closed)

Created:
4 years, 9 months ago by hubbe
Modified:
4 years, 8 months ago
Reviewers:
DaleCurtis, miu
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

Lazily prune the multibuffer block cache. Prunes ~5Mb per minute. BUG=595827 Committed: https://crrev.com/6f09ac8211e36d634bd143881a870687bdb4c23f Cr-Commit-Position: refs/heads/master@{#383636}

Patch Set 1 #

Total comments: 2

Patch Set 2 : active -> pending #

Patch Set 3 : comments added #

Patch Set 4 : also schedule pruning when data size changes #

Patch Set 5 : test added + moved FakeSingleThreadTaskRunner to media/base #

Total comments: 2

Patch Set 6 : no copy #

Patch Set 7 : missed a few FakeSingleThreadTaskRunner call sites #

Patch Set 8 : export FakeSingleThreadTaskRunner #

Patch Set 9 : oops #

Patch Set 10 : another compile fix #

Patch Set 11 : no export #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -259 lines) Patch
M media/base/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A + media/base/fake_single_thread_task_runner.h View 1 2 3 4 8 9 10 2 chunks +0 lines, -4 lines 0 comments Download
A + media/base/fake_single_thread_task_runner.cc View 1 2 3 4 2 chunks +2 lines, -7 lines 0 comments Download
M media/blink/multibuffer.h View 1 2 3 4 5 3 chunks +28 lines, -1 line 0 comments Download
M media/blink/multibuffer.cc View 1 2 3 4 4 chunks +37 lines, -1 line 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M media/blink/multibuffer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +59 lines, -1 line 0 comments Download
M media/blink/url_index.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M media/blink/url_index_unittest.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M media/cast/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M media/cast/cast_testing.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M media/cast/logging/encoding_event_subscriber_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/logging/receiver_time_offset_estimator_impl_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/logging/simple_event_subscriber_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/logging/stats_event_subscriber_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/net/cast_transport_sender_impl_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/net/pacing/paced_sender_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/net/rtcp/receiver_rtcp_event_subscriber_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/net/rtcp/rtcp_utility_unittest.cc View 1 2 3 4 3 chunks +3 lines, -5 lines 0 comments Download
M media/cast/net/rtp/rtp_packetizer_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/receiver/frame_receiver_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/audio_encoder_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/audio_sender_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/congestion_control_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/video_encoder_unittest.cc View 1 2 3 4 4 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/video_sender_unittest.cc View 1 2 3 4 4 chunks +3 lines, -3 lines 0 comments Download
M media/cast/test/cast_benchmarks.cc View 1 2 3 4 5 6 4 chunks +3 lines, -3 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 4 chunks +3 lines, -3 lines 0 comments Download
D media/cast/test/fake_single_thread_task_runner.h View 1 2 3 4 1 chunk +0 lines, -65 lines 0 comments Download
D media/cast/test/fake_single_thread_task_runner.cc View 1 2 3 4 1 chunk +0 lines, -118 lines 0 comments Download
M media/cast/test/simulator.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M media/media.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (5 generated)
hubbe
4 years, 9 months ago (2016-03-24 19:07:06 UTC) #2
DaleCurtis
Unittest? https://codereview.chromium.org/1829163002/diff/1/media/blink/multibuffer.cc File media/blink/multibuffer.cc (right): https://codereview.chromium.org/1829163002/diff/1/media/blink/multibuffer.cc#newcode115 media/blink/multibuffer.cc:115: background_pruning_active_ = false; This disables pruning on the ...
4 years, 9 months ago (2016-03-24 19:12:24 UTC) #3
hubbe
https://codereview.chromium.org/1829163002/diff/1/media/blink/multibuffer.cc File media/blink/multibuffer.cc (right): https://codereview.chromium.org/1829163002/diff/1/media/blink/multibuffer.cc#newcode115 media/blink/multibuffer.cc:115: background_pruning_active_ = false; On 2016/03/24 19:12:24, DaleCurtis wrote: > ...
4 years, 9 months ago (2016-03-24 20:57:41 UTC) #4
DaleCurtis
When does the prune task stop running?
4 years, 9 months ago (2016-03-24 21:02:58 UTC) #5
hubbe
On 2016/03/24 21:02:58, DaleCurtis wrote: > When does the prune task stop running? When there ...
4 years, 9 months ago (2016-03-24 21:05:44 UTC) #6
DaleCurtis
On 2016/03/24 at 21:05:44, hubbe wrote: > On 2016/03/24 21:02:58, DaleCurtis wrote: > > When ...
4 years, 9 months ago (2016-03-24 21:07:30 UTC) #7
DaleCurtis
On 2016/03/24 at 21:07:30, DaleCurtis wrote: > On 2016/03/24 at 21:05:44, hubbe wrote: > > ...
4 years, 9 months ago (2016-03-24 21:10:16 UTC) #8
hubbe
On 2016/03/24 21:10:16, DaleCurtis wrote: > On 2016/03/24 at 21:07:30, DaleCurtis wrote: > > On ...
4 years, 9 months ago (2016-03-24 21:21:52 UTC) #9
DaleCurtis
Does max_size_ return to zero after a playback? It's not clear how the Pruneable() function ...
4 years, 9 months ago (2016-03-24 21:28:03 UTC) #10
hubbe
On 2016/03/24 21:28:03, DaleCurtis wrote: > Does max_size_ return to zero after a playback? It's ...
4 years, 9 months ago (2016-03-24 21:39:41 UTC) #11
DaleCurtis
Sounds good. LG once a test is added.
4 years, 9 months ago (2016-03-24 21:47:40 UTC) #12
hubbe
On 2016/03/24 21:47:40, DaleCurtis wrote: > Sounds good. LG once a test is added. As ...
4 years, 9 months ago (2016-03-25 17:41:41 UTC) #13
hubbe
Adding miu@ as a media/cast FYI
4 years, 9 months ago (2016-03-25 18:07:57 UTC) #15
DaleCurtis
Will take a look in a bit, at a glance though you might also have ...
4 years, 9 months ago (2016-03-25 18:13:27 UTC) #16
chromium-reviews
Injectable TaskRunners + Clocks is really powerful for testing though. We did this throughout our ...
4 years, 9 months ago (2016-03-25 18:20:50 UTC) #17
miu
media/base and media/cast lgtm Code re-use FTW! :)
4 years, 9 months ago (2016-03-25 20:45:32 UTC) #18
DaleCurtis
lgtm should this test class be in media/test instead? https://codereview.chromium.org/1829163002/diff/80001/media/blink/multibuffer.h File media/blink/multibuffer.h (right): https://codereview.chromium.org/1829163002/diff/80001/media/blink/multibuffer.h#newcode187 media/blink/multibuffer.h:187: ...
4 years, 9 months ago (2016-03-25 20:52:22 UTC) #19
hubbe
> should this test class be in media/test instead? Possibly, but no more so than ...
4 years, 9 months ago (2016-03-25 21:06:30 UTC) #20
DaleCurtis
Still lgtm
4 years, 9 months ago (2016-03-25 21:37:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829163002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829163002/200001
4 years, 8 months ago (2016-03-28 23:38:36 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-03-29 00:46:02 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 00:47:19 UTC) #27
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/6f09ac8211e36d634bd143881a870687bdb4c23f
Cr-Commit-Position: refs/heads/master@{#383636}

Powered by Google App Engine
This is Rietveld 408576698