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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp

Issue 1671033002: Do not let go of MediaStreamTracks too early. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
index 7130511d98579eaf69d0a8ad532b93abc20d54ab..2dbab3b640342811d0596e906da702aa77ea7db5 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
@@ -210,6 +210,11 @@ void MediaStreamTrack::stop()
m_stopped = true;
}
+bool MediaStreamTrack::hasPendingActivity() const
+{
+ return !m_stopped && hasEventListeners();
sof 2016/02/07 06:54:27 I wonder if something effectively like this needs
sof 2016/02/07 07:04:36 I notice MajorGCWrapperVisitor has special handlin
haraken 2016/02/07 07:21:31 Yeah, without having the check, we'll end up with
+}
+
PassOwnPtr<AudioSourceProvider> MediaStreamTrack::createWebAudioSource()
{
return MediaStreamCenter::instance().createWebAudioSourceFromMediaStreamTrack(component());
« no previous file with comments | « third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698