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

Issue 1363143003: [Oilpan] Move MediaStream{Source|Component|Descriptor} to Oilpan heap (Closed)

Created:
5 years, 3 months ago by peria
Modified:
5 years, 2 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move MediaStream{Source|Component|Descriptor} to Oilpan heap BUG=496535 Committed: https://crrev.com/622d290d58d54d6c1410d19ecb88b5c2dd2d135d Cr-Commit-Position: refs/heads/master@{#352008}

Patch Set 1 #

Total comments: 23

Patch Set 2 : Work for comments #

Total comments: 2

Patch Set 3 : Rebase & work for a comment #

Total comments: 5

Patch Set 4 : Make MediaStreamSource::Observer weak member #

Patch Set 5 : Make MediaStreamComponent eagerly finalized class #

Total comments: 4

Patch Set 6 : Drop explit in WebMediaStreamSource #

Total comments: 14

Patch Set 7 : #

Patch Set 8 : Introduce pre-finalizer in MediaStream #

Patch Set 9 : Revert changes in PS8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -141 lines) Patch
M third_party/WebKit/Source/modules/mediastream/MediaStream.h View 1 2 3 4 5 6 8 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStream.cpp View 1 2 3 4 5 6 8 6 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamRegistry.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp View 1 2 3 4 chunks +4 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCStatsRequestImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCStatsRequestImpl.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/UserMediaRequest.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMediaStream.cpp View 2 chunks +1 line, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp View 1 2 3 4 5 2 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp View 3 chunks +0 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h View 1 2 3 4 5 6 4 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.cpp View 2 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.h View 1 2 3 4 5 6 4 chunks +17 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.cpp View 1 2 3 4 5 6 5 chunks +17 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h View 1 2 3 5 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp View 1 2 3 3 chunks +10 lines, -11 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaStream.h View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaStreamSource.h View 2 3 4 5 3 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebMediaStreamTrack.h View 2 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 46 (8 generated)
peria
PTL. This CL should be same with [1], and the problem which reverted [1] is ...
5 years, 2 months ago (2015-09-30 02:18:17 UTC) #2
sof
https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp File third_party/WebKit/Source/modules/mediastream/MediaStream.cpp (right): https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp#newcode217 third_party/WebKit/Source/modules/mediastream/MediaStream.cpp:217: MediaStreamCenter::instance().didAddMediaStreamTrack(m_descriptor.get(), track->component()); redundant get() https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp#newcode251 third_party/WebKit/Source/modules/mediastream/MediaStream.cpp:251: MediaStreamCenter::instance().didRemoveMediaStreamTrack(m_descriptor.get(), track->component()); redundant ...
5 years, 2 months ago (2015-09-30 06:26:35 UTC) #4
haraken
https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode111 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:111: Vector<Observer*> m_observers; On 2015/09/30 06:26:35, sof wrote: > Are ...
5 years, 2 months ago (2015-09-30 07:18:21 UTC) #6
Yuta Kitamura
https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode111 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:111: Vector<Observer*> m_observers; On 2015/09/30 at 07:18:20, haraken wrote: > ...
5 years, 2 months ago (2015-09-30 07:25:09 UTC) #7
haraken
https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode111 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:111: Vector<Observer*> m_observers; On 2015/09/30 07:25:09, Yuta Kitamura wrote: > ...
5 years, 2 months ago (2015-09-30 07:35:32 UTC) #8
peria
https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp File third_party/WebKit/Source/modules/mediastream/MediaStream.cpp (right): https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp#newcode217 third_party/WebKit/Source/modules/mediastream/MediaStream.cpp:217: MediaStreamCenter::instance().didAddMediaStreamTrack(m_descriptor.get(), track->component()); On 2015/09/30 06:26:34, sof wrote: > redundant ...
5 years, 2 months ago (2015-09-30 07:50:05 UTC) #9
sof
https://codereview.chromium.org/1363143003/diff/20001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/20001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode111 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:111: WillBeHeapVector<RawPtrWillBeMember<Observer>> m_observers; Can't this be HeapVector<Member<Observer>> ?
5 years, 2 months ago (2015-09-30 07:54:27 UTC) #10
Yuta Kitamura
On 2015/09/30 at 07:35:32, haraken wrote: > https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h > File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): > > https://codereview.chromium.org/1363143003/diff/1/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode111 ...
5 years, 2 months ago (2015-09-30 08:00:30 UTC) #11
sof
On 2015/09/30 08:00:30, Yuta Kitamura wrote: > On 2015/09/30 at 07:35:32, haraken wrote: > > ...
5 years, 2 months ago (2015-09-30 08:05:59 UTC) #12
peria
https://codereview.chromium.org/1363143003/diff/20001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/20001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode111 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:111: WillBeHeapVector<RawPtrWillBeMember<Observer>> m_observers; On 2015/09/30 07:54:27, sof wrote: > Can't ...
5 years, 2 months ago (2015-09-30 08:16:03 UTC) #13
Yuta Kitamura
On 2015/09/30 at 08:05:59, sigbjornf wrote: > On 2015/09/30 08:00:30, Yuta Kitamura wrote: > > ...
5 years, 2 months ago (2015-09-30 08:53:46 UTC) #14
sof
https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode99 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:99: DECLARE_TRACE(); Observers will take care of eagerly removing themselves ...
5 years, 2 months ago (2015-09-30 09:27:34 UTC) #15
peria
https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode99 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:99: DECLARE_TRACE(); On 2015/09/30 09:27:34, sof wrote: > Observers will ...
5 years, 2 months ago (2015-10-01 09:11:53 UTC) #16
sof
from my point of view, looks good & ready now. https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode99 ...
5 years, 2 months ago (2015-10-01 18:54:06 UTC) #17
peria
On 2015/10/01 18:54:06, sof wrote: > from my point of view, looks good & ready ...
5 years, 2 months ago (2015-10-02 02:23:34 UTC) #18
haraken
On 2015/10/02 02:23:34, peria wrote: > On 2015/10/01 18:54:06, sof wrote: > > from my ...
5 years, 2 months ago (2015-10-02 02:26:34 UTC) #19
haraken
https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode111 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:111: HeapVector<Member<Observer>> m_observers; Can we make this HeapHashSet<WeakMember<Observer>>? Then we ...
5 years, 2 months ago (2015-10-02 02:27:16 UTC) #20
peria
On 2015/10/02 02:26:34, haraken wrote: > On 2015/10/02 02:23:34, peria wrote: > > On 2015/10/01 ...
5 years, 2 months ago (2015-10-02 03:19:59 UTC) #21
peria
On 2015/10/02 02:26:34, haraken wrote: > On 2015/10/02 02:23:34, peria wrote: > > On 2015/10/01 ...
5 years, 2 months ago (2015-10-02 03:20:00 UTC) #22
peria
Kent-san, could you take a look for third_party/WebKit/public \? https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h File third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h (right): https://codereview.chromium.org/1363143003/diff/40001/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h#newcode111 third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h:111: ...
5 years, 2 months ago (2015-10-02 03:20:51 UTC) #24
tkent
lgtm https://codereview.chromium.org/1363143003/diff/30025/third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp File third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp (right): https://codereview.chromium.org/1363143003/diff/30025/third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp#newcode73 third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp:73: :m_private(mediaStreamSource) Please do not remove a space. https://codereview.chromium.org/1363143003/diff/30025/third_party/WebKit/public/platform/WebMediaStreamSource.h ...
5 years, 2 months ago (2015-10-02 04:02:14 UTC) #25
peria
https://codereview.chromium.org/1363143003/diff/30025/third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp File third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp (right): https://codereview.chromium.org/1363143003/diff/30025/third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp#newcode73 third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp:73: :m_private(mediaStreamSource) On 2015/10/02 04:02:14, tkent wrote: > Please do ...
5 years, 2 months ago (2015-10-02 04:20:37 UTC) #26
haraken
https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp File third_party/WebKit/Source/modules/mediastream/MediaStream.cpp (right): https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp#newcode157 third_party/WebKit/Source/modules/mediastream/MediaStream.cpp:157: m_descriptor->setClient(0); You must not touch m_descriptor in the destructor. ...
5 years, 2 months ago (2015-10-02 04:35:10 UTC) #27
peria
https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp File third_party/WebKit/Source/modules/mediastream/MediaStream.cpp (right): https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp#newcode157 third_party/WebKit/Source/modules/mediastream/MediaStream.cpp:157: m_descriptor->setClient(0); On 2015/10/02 04:35:09, haraken wrote: > > You ...
5 years, 2 months ago (2015-10-02 05:48:55 UTC) #28
sof
https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp File third_party/WebKit/Source/modules/mediastream/MediaStream.cpp (right): https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp#newcode157 third_party/WebKit/Source/modules/mediastream/MediaStream.cpp:157: m_descriptor->setClient(0); On 2015/10/02 05:48:54, peria wrote: > On 2015/10/02 ...
5 years, 2 months ago (2015-10-02 05:55:19 UTC) #29
peria
https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp File third_party/WebKit/Source/modules/mediastream/MediaStream.cpp (right): https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp#newcode157 third_party/WebKit/Source/modules/mediastream/MediaStream.cpp:157: m_descriptor->setClient(0); On 2015/10/02 05:55:19, sof wrote: > On 2015/10/02 ...
5 years, 2 months ago (2015-10-02 06:25:35 UTC) #30
haraken
On 2015/10/02 06:25:35, peria wrote: > https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp > File third_party/WebKit/Source/modules/mediastream/MediaStream.cpp (right): > > https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp#newcode157 > ...
5 years, 2 months ago (2015-10-02 06:40:28 UTC) #31
peria
On 2015/10/02 06:40:28, haraken wrote: > On 2015/10/02 06:25:35, peria wrote: > > > https://codereview.chromium.org/1363143003/diff/90001/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp ...
5 years, 2 months ago (2015-10-02 06:48:05 UTC) #32
haraken
On 2015/10/02 06:48:05, peria wrote: > On 2015/10/02 06:40:28, haraken wrote: > > On 2015/10/02 ...
5 years, 2 months ago (2015-10-02 06:49:29 UTC) #33
peria
On 2015/10/02 06:49:29, haraken wrote: > On 2015/10/02 06:48:05, peria wrote: > > On 2015/10/02 ...
5 years, 2 months ago (2015-10-02 06:54:20 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1363143003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1363143003/140001
5 years, 2 months ago (2015-10-02 07:58:25 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/76955)
5 years, 2 months ago (2015-10-02 10:59:58 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1363143003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1363143003/140001
5 years, 2 months ago (2015-10-02 11:07:59 UTC) #41
commit-bot: I haz the power
Committed patchset #9 (id:140001)
5 years, 2 months ago (2015-10-02 12:35:00 UTC) #42
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/622d290d58d54d6c1410d19ecb88b5c2dd2d135d Cr-Commit-Position: refs/heads/master@{#352008}
5 years, 2 months ago (2015-10-02 12:35:54 UTC) #43
Finnur
Looks like this might be causing multiple test failures on the bots. Example: https://build.chromium.org/p/chromium.linux/builders/Cast%20Linux/builds/9048
5 years, 2 months ago (2015-10-02 13:31:15 UTC) #44
Finnur
A revert of this CL (patchset #9 id:140001) has been created in https://codereview.chromium.org/1375773004/ by finnur@chromium.org. ...
5 years, 2 months ago (2015-10-02 13:34:08 UTC) #45
Finnur
5 years, 2 months ago (2015-10-02 15:37:39 UTC) #46
Message was sent while issue was closed.
Yup, seems like the Linux failures have stopped.

Powered by Google App Engine
This is Rietveld 408576698