Bug 1190495 - Hoist TaskQueue into xpcom. r=froydnj
authorBobby Holley <bobbyholley@gmail.com>
Fri, 07 Aug 2015 17:03:47 -0700
changeset 257245 f78347b683ee4be6d28adb49b94ea1335750e87d
parent 257244 030f756097026386cce95b67b6110f51985b2ef1
child 257246 a13c1f26e351dd6251da641fe7a9eb53790fc2d0
push id29210
push userkwierso@gmail.com
push dateTue, 11 Aug 2015 22:35:38 +0000
treeherdermozilla-central@7dcecc8a395d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1190495
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1190495 - Hoist TaskQueue into xpcom. r=froydnj
dom/media/TaskQueue.cpp
dom/media/TaskQueue.h
dom/media/moz.build
xpcom/threads/TaskQueue.cpp
xpcom/threads/TaskQueue.h
xpcom/threads/moz.build
--- a/dom/media/moz.build
+++ b/dom/media/moz.build
@@ -150,17 +150,16 @@ EXPORTS += [
     'VorbisUtils.h',
 ]
 
 EXPORTS.mozilla += [
     'MediaManager.h',
     'MozPromise.h',
     'StateMirroring.h',
     'StateWatching.h',
-    'TaskQueue.h',
 ]
 
 EXPORTS.mozilla.media.webrtc += [
     'webrtc/WebrtcGlobal.h',
 ]
 
 IPDL_SOURCES += [
     'webrtc/PWebrtcGlobal.ipdl'
@@ -230,17 +229,16 @@ UNIFIED_SOURCES += [
     'MediaTimer.cpp',
     'MediaTrack.cpp',
     'MediaTrackList.cpp',
     'MP3Decoder.cpp',
     'MP3Demuxer.cpp',
     'MP3FrameParser.cpp',
     'RtspMediaResource.cpp',
     'StreamBuffer.cpp',
-    'TaskQueue.cpp',
     'TextTrack.cpp',
     'TextTrackCue.cpp',
     'TextTrackCueList.cpp',
     'TextTrackList.cpp',
     'TextTrackRegion.cpp',
     'TrackUnionStream.cpp',
     'VideoFrameContainer.cpp',
     'VideoPlaybackQuality.cpp',
rename from dom/media/TaskQueue.cpp
rename to xpcom/threads/TaskQueue.cpp
rename from dom/media/TaskQueue.h
rename to xpcom/threads/TaskQueue.h
--- a/xpcom/threads/moz.build
+++ b/xpcom/threads/moz.build
@@ -31,16 +31,17 @@ EXPORTS.mozilla += [
     'AbstractThread.h',
     'BackgroundHangMonitor.h',
     'HangAnnotations.h',
     'HangMonitor.h',
     'LazyIdleThread.h',
     'SharedThreadPool.h',
     'SyncRunnable.h',
     'TaskDispatcher.h',
+    'TaskQueue.h',
 ]
 
 UNIFIED_SOURCES += [
     'AbstractThread.cpp',
     'BackgroundHangMonitor.cpp',
     'HangAnnotations.cpp',
     'HangMonitor.cpp',
     'LazyIdleThread.cpp',
@@ -48,16 +49,17 @@ UNIFIED_SOURCES += [
     'nsEventQueue.cpp',
     'nsMemoryPressure.cpp',
     'nsProcessCommon.cpp',
     'nsThread.cpp',
     'nsThreadManager.cpp',
     'nsThreadPool.cpp',
     'nsTimerImpl.cpp',
     'SharedThreadPool.cpp',
+    'TaskQueue.cpp',
     'ThreadStackHelper.cpp',
     'TimerThread.cpp',
 ]
 
 LOCAL_INCLUDES += [
     '../build',
     '/caps',
     '/toolkit/crashreporter/google-breakpad/src',