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

Issue 2758453004: Remove dangling PlayingState pointers in WebRtcAudioRenderer. (Closed)

Created:
3 years, 9 months ago by Max Morin
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, o1ka, Solis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dangling PlayingState pointers in WebRtcAudioRenderer. This solution is a bit of a hack, but it works. Did manual testing and ran unit tests. Bug 697256 does not reproduce with this patch. R=tommi@chromium.org BUG=697256 Review-Url: https://codereview.chromium.org/2758453004 Cr-Commit-Position: refs/heads/master@{#458025} Committed: https://chromium.googlesource.com/chromium/src/+/ba21ffd704aebcc8a5e5e1ab1f072e9b79b51fcb

Patch Set 1 #

Total comments: 5

Patch Set 2 : comment. #

Total comments: 2

Patch Set 3 : Switch to callback #

Patch Set 4 : Update comment and add thread check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -7 lines) Patch
M content/renderer/media/webrtc_audio_renderer.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 1 2 3 5 chunks +40 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Max Morin
Tommi: WDYT of this approach? Also, feel free to add more reviewers if you know ...
3 years, 9 months ago (2017-03-17 10:53:49 UTC) #1
Max Morin
Also CC Olga, Solis.
3 years, 9 months ago (2017-03-17 11:19:52 UTC) #3
o1ka
https://codereview.chromium.org/2758453004/diff/1/content/renderer/media/webrtc_audio_renderer.cc File content/renderer/media/webrtc_audio_renderer.cc (right): https://codereview.chromium.org/2758453004/diff/1/content/renderer/media/webrtc_audio_renderer.cc#newcode577 content/renderer/media/webrtc_audio_renderer.cc:577: // We must ensure that no references to playing_state ...
3 years, 9 months ago (2017-03-17 12:03:30 UTC) #6
Max Morin
https://codereview.chromium.org/2758453004/diff/1/content/renderer/media/webrtc_audio_renderer.cc File content/renderer/media/webrtc_audio_renderer.cc (right): https://codereview.chromium.org/2758453004/diff/1/content/renderer/media/webrtc_audio_renderer.cc#newcode577 content/renderer/media/webrtc_audio_renderer.cc:577: // We must ensure that no references to playing_state ...
3 years, 9 months ago (2017-03-17 12:21:44 UTC) #7
tommi (sloooow) - chröme
https://codereview.chromium.org/2758453004/diff/1/content/renderer/media/webrtc_audio_renderer.cc File content/renderer/media/webrtc_audio_renderer.cc (right): https://codereview.chromium.org/2758453004/diff/1/content/renderer/media/webrtc_audio_renderer.cc#newcode57 content/renderer/media/webrtc_audio_renderer.cc:57: // or SetVolume are called (whenever the internal |playing_state_| ...
3 years, 9 months ago (2017-03-17 12:44:08 UTC) #8
Max Morin
https://codereview.chromium.org/2758453004/diff/1/content/renderer/media/webrtc_audio_renderer.h File content/renderer/media/webrtc_audio_renderer.h (right): https://codereview.chromium.org/2758453004/diff/1/content/renderer/media/webrtc_audio_renderer.h#newcode196 content/renderer/media/webrtc_audio_renderer.h:196: bool playing_state_deleted); On 2017/03/17 12:44:08, tommi - chröme wrote: ...
3 years, 9 months ago (2017-03-17 14:08:04 UTC) #9
tommi (sloooow) - chröme
lgtm
3 years, 9 months ago (2017-03-17 15:23:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2758453004/60001
3 years, 9 months ago (2017-03-20 07:44:15 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/ba21ffd704aebcc8a5e5e1ab1f072e9b79b51fcb
3 years, 9 months ago (2017-03-20 08:40:38 UTC) #15
Max Morin
3 years, 7 months ago (2017-05-03 10:45:28 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2856943003/ by maxmorin@chromium.org.

The reason for reverting is: This causes a memory use increase across the board
on Android, even when WebRTC isn't used..

Powered by Google App Engine
This is Rietveld 408576698