Use separate thread pool for platform decoder task queues

So that platform decoder tasks will run when their readers wait and block their thread pool.
This commit is contained in:
trav90
2017-06-05 20:51:57 -05:00
committed by Roy Tam
parent fa5e7c9c21
commit eba13a9563
9 changed files with 44 additions and 15 deletions
+2 -1
View File
@@ -203,7 +203,8 @@ MediaDecoderStateMachine::MediaDecoderStateMachine(MediaDecoder* aDecoder,
MediaDecoderReader* aReader,
bool aRealTime) :
mDecoder(aDecoder),
mTaskQueue(new MediaTaskQueue(GetMediaThreadPool(), /* aAssertTailDispatch = */ true)),
mTaskQueue(new MediaTaskQueue(GetMediaThreadPool(MediaThreadType::PLAYBACK),
/* aAssertTailDispatch = */ true)),
mWatchManager(this, mTaskQueue),
mRealTime(aRealTime),
mDispatchedStateMachine(false),