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

Unified Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp

Issue 1580883002: Oilpan: move AsyncMethodRunner to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to RawPtrOrMemberTrait<> Created 4 years, 11 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
Index: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
diff --git a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
index 9713746b3413c61ba99626773af403ac7249b3eb..94a3ffd06495d8f7adbb9593846bbd3ba16bbd77 100644
--- a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
+++ b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
@@ -59,7 +59,7 @@ MediaRecorder::MediaRecorder(ExecutionContext* context, MediaStream* stream, con
, m_stopped(true)
, m_ignoreMutedMedia(true)
, m_state(State::Inactive)
- , m_dispatchScheduledEventRunner(this, &MediaRecorder::dispatchScheduledEvent)
+ , m_dispatchScheduledEventRunner(AsyncMethodRunner<MediaRecorder>::create(this, &MediaRecorder::dispatchScheduledEvent))
{
ASSERT(m_stream->getTracks().size());
@@ -181,12 +181,12 @@ ExecutionContext* MediaRecorder::executionContext() const
void MediaRecorder::suspend()
{
- m_dispatchScheduledEventRunner.suspend();
+ m_dispatchScheduledEventRunner->suspend();
}
void MediaRecorder::resume()
{
- m_dispatchScheduledEventRunner.resume();
+ m_dispatchScheduledEventRunner->resume();
}
void MediaRecorder::stop()
@@ -251,7 +251,7 @@ void MediaRecorder::scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event> event)
{
m_scheduledEvents.append(event);
- m_dispatchScheduledEventRunner.runAsync();
+ m_dispatchScheduledEventRunner->runAsync();
}
void MediaRecorder::dispatchScheduledEvent()
@@ -266,6 +266,7 @@ void MediaRecorder::dispatchScheduledEvent()
DEFINE_TRACE(MediaRecorder)
{
visitor->trace(m_stream);
+ visitor->trace(m_dispatchScheduledEventRunner);
visitor->trace(m_scheduledEvents);
RefCountedGarbageCollectedEventTargetWithInlineData<MediaRecorder>::trace(visitor);
ActiveDOMObject::trace(visitor);

Powered by Google App Engine
This is Rietveld 408576698