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

Issue 1480213005: Run Demuxer::GetMemoryUsage() on media thread (Closed)

Created:
5 years ago by wdzierzanowski
Modified:
5 years 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

Run Demuxer::GetMemoryUsage() on media thread Split the memory usage reporting in WebMediaPlayerImpl into two steps so that |demuxer_| can be accessed on the media thread only. This change makes no practical difference for ChunkDemuxer ATM, which uses locks extensively anyway. But it does make a difference for FFmpegDemuxer (as evidenced by https://codereview.chromium.org/1419753007 -- can be reverted now). Also, other Chromium-based products are better off if Demuxer implementations are not forced to worry about synchronization themselves. BUG=564034 TEST=Crash page from 447898 still doesn't crash Committed: https://crrev.com/fd4cd91c5eea8b3a4970f5512a306e4a03e33101 Cr-Commit-Position: refs/heads/master@{#362821}

Patch Set 1 #

Patch Set 2 : Update comment #

Patch Set 3 : Rebase #

Total comments: 7

Patch Set 4 : Rename function back to ReportMemoryUsage() #

Patch Set 5 : Revert comment change #

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

Messages

Total messages: 22 (5 generated)
wdzierzanowski
PTAL
5 years ago (2015-12-01 15:57:49 UTC) #2
DaleCurtis
Will need to rebase, but lgtm otherwise. Are you going to handle the revert of ...
5 years ago (2015-12-01 18:15:37 UTC) #3
wdzierzanowski
On 2015/12/01 18:15:37, DaleCurtis wrote: > Will need to rebase, but lgtm otherwise. Thanks for ...
5 years ago (2015-12-01 18:18:52 UTC) #4
wdzierzanowski
Small comment update in Patch Set 2.
5 years ago (2015-12-01 18:24:01 UTC) #5
wdzierzanowski
Rebased in Patch Set 3.
5 years ago (2015-12-01 18:44:32 UTC) #6
wdzierzanowski
On 2015/12/01 18:44:32, wdzierzanowski wrote: > Rebased in Patch Set 3. Should I commit already ...
5 years ago (2015-12-01 19:48:32 UTC) #7
DaleCurtis
Just realized this adds an extra thread hop, what do you think about avoiding it? ...
5 years ago (2015-12-01 20:14:20 UTC) #8
wdzierzanowski
https://codereview.chromium.org/1480213005/diff/40001/media/base/demuxer.h File media/base/demuxer.h (right): https://codereview.chromium.org/1480213005/diff/40001/media/base/demuxer.h#newcode90 media/base/demuxer.h:90: // Returns the memory usage in bytes for the ...
5 years ago (2015-12-02 09:27:54 UTC) #9
wdzierzanowski
https://codereview.chromium.org/1480213005/diff/40001/media/base/demuxer.h File media/base/demuxer.h (right): https://codereview.chromium.org/1480213005/diff/40001/media/base/demuxer.h#newcode90 media/base/demuxer.h:90: // Returns the memory usage in bytes for the ...
5 years ago (2015-12-02 09:31:41 UTC) #10
wdzierzanowski
I've also renamed StartMemoryUsageReport() back to ReportMemoryUsage(). The former could wrongly suggest it's about starting ...
5 years ago (2015-12-02 09:39:18 UTC) #11
DaleCurtis
lgtm, this only happens every 2 seconds during playback now, so I don't think the ...
5 years ago (2015-12-02 17:11:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480213005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480213005/80001
5 years ago (2015-12-02 20:24:33 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/149049)
5 years ago (2015-12-02 21:09:38 UTC) #16
wdzierzanowski
I'm not convinced the failure is related. Retrying...
5 years ago (2015-12-02 22:41:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480213005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480213005/80001
5 years ago (2015-12-02 22:43:13 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-02 23:50:29 UTC) #20
commit-bot: I haz the power
5 years ago (2015-12-02 23:51:17 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fd4cd91c5eea8b3a4970f5512a306e4a03e33101
Cr-Commit-Position: refs/heads/master@{#362821}

Powered by Google App Engine
This is Rietveld 408576698