Bug 1190492 - Hoist AbstractThread and TaskDispatcher to xpcom. r=froydnj
authorBobby Holley <bobbyholley@gmail.com>
Tue, 04 Aug 2015 16:32:11 -0700
changeset 256951 009c9c7d9c942a35c41b8aa649f345331a213b79
parent 256950 3e966926dca993df1884e3e1d9035cc7a513502c
child 256952 8ad9b87bac4da23ff549ecb2d2b602341f769f40
push id14551
push userphilringnalda@gmail.com
push dateSun, 09 Aug 2015 02:42:06 +0000
treeherderfx-team@55d2b7e1e99b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1190492
milestone42.0a1
Bug 1190492 - Hoist AbstractThread and TaskDispatcher to xpcom. r=froydnj
dom/media/AbstractThread.cpp
dom/media/AbstractThread.h
dom/media/TaskDispatcher.h
dom/media/moz.build
xpcom/threads/AbstractThread.cpp
xpcom/threads/AbstractThread.h
xpcom/threads/TaskDispatcher.h
xpcom/threads/moz.build
--- a/dom/media/moz.build
+++ b/dom/media/moz.build
@@ -145,22 +145,20 @@ EXPORTS += [
     'TrackUnionStream.h',
     'VideoFrameContainer.h',
     'VideoSegment.h',
     'VideoUtils.h',
     'VorbisUtils.h',
 ]
 
 EXPORTS.mozilla += [
-    'AbstractThread.h',
     'MediaManager.h',
     'MozPromise.h',
     'StateMirroring.h',
     'StateWatching.h',
-    'TaskDispatcher.h',
     'TaskQueue.h',
 ]
 
 EXPORTS.mozilla.media.webrtc += [
     'webrtc/WebrtcGlobal.h',
 ]
 
 IPDL_SOURCES += [
@@ -189,17 +187,16 @@ EXPORTS.mozilla.dom += [
     'TextTrackRegion.h',
     'VideoPlaybackQuality.h',
     'VideoStreamTrack.h',
     'VideoTrack.h',
     'VideoTrackList.h',
 ]
 
 UNIFIED_SOURCES += [
-    'AbstractThread.cpp',
     'AudioCaptureStream.cpp',
     'AudioChannelFormat.cpp',
     'AudioCompactor.cpp',
     'AudioSegment.cpp',
     'AudioSink.cpp',
     'AudioStream.cpp',
     'AudioStreamTrack.cpp',
     'AudioTrack.cpp',
rename from dom/media/AbstractThread.cpp
rename to xpcom/threads/AbstractThread.cpp
rename from dom/media/AbstractThread.h
rename to xpcom/threads/AbstractThread.h
rename from dom/media/TaskDispatcher.h
rename to xpcom/threads/TaskDispatcher.h
--- a/xpcom/threads/moz.build
+++ b/xpcom/threads/moz.build
@@ -23,25 +23,28 @@ XPIDL_MODULE = 'xpcom_threads'
 EXPORTS += [
     'nsEventQueue.h',
     'nsMemoryPressure.h',
     'nsProcess.h',
     'nsThread.h',
 ]
 
 EXPORTS.mozilla += [
+    'AbstractThread.h',
     'BackgroundHangMonitor.h',
     'HangAnnotations.h',
     'HangMonitor.h',
     'LazyIdleThread.h',
     'SharedThreadPool.h',
     'SyncRunnable.h',
+    'TaskDispatcher.h',
 ]
 
 UNIFIED_SOURCES += [
+    'AbstractThread.cpp',
     'BackgroundHangMonitor.cpp',
     'HangAnnotations.cpp',
     'HangMonitor.cpp',
     'LazyIdleThread.cpp',
     'nsEnvironment.cpp',
     'nsEventQueue.cpp',
     'nsMemoryPressure.cpp',
     'nsProcessCommon.cpp',