Commit Graph
41 Commits
Author SHA1 Message Date
JW Wang 3d7eea89fb Bug 1373914. P3 - dump sInitPhase when sInstance is null in Instance() to help debugging. r=gerald
MozReview-Commit-ID: dI85veNOKz
2017-06-19 17:14:06 +08:00
JW Wang 72a2d79326 Bug 1373914. P1 - add a static to track the life cycle of MediaShutdownManager. r=gerald
MozReview-Commit-ID: GRonPU7cVFV
2017-06-19 17:09:56 +08:00
JW Wang c34b029690 Bug 1366930 - Correct error handling in mozilla::MediaShutdownManager::InitStatics. r=gerald
Resetting sInstance in MediaShutdownManager::InitStatics() will cause
MediaShutdownManager::Instance().Register() to crash immediately without
a chance to handle the error in Register().

Instead, we keep an error code to know whether to bail out in Register().

MozReview-Commit-ID: EGqL1407Gh
2017-05-23 11:02:56 +08:00
JW Wang 44af414fc3 Bug 1362927 - handle AddBlocker() failure in MediaShutdownManager::InitStatics(). r=gerald
AddBlocker() could fail during main thread shutdown. We should clear sInstance
on failure so next Register() calls can fail gracefully.

MozReview-Commit-ID: KiRRhO9ymbf
2017-05-08 16:09:03 +08:00
JW Wang 3cbf84465a Bug 1343787. Part 1 - allow MediaShutdownManager::Register() to fail. r=gerald
MozReview-Commit-ID: 2pnPnq4NlXN
2017-03-02 16:08:28 +08:00
Emanuel Hoogeveen 8b2881caa4 Bug 1338574 - Part 2: Use MOZ_CRASH_UNSAFE_PRINTF in Media. r=jwwang 2017-02-21 18:01:45 +01:00
JW Wang 4be134233a Bug 1336356 - Ensure MediaDecode::Shutdown() is called by MediaShutdownManager::BlockShutdown(). r=gerald
MozReview-Commit-ID: 80AFMafXoeB
2017-02-03 17:12:38 +08:00
JW Wang afa0febd33 Bug 1336345. Part 2 - some code cleanup. r=gerald
MozReview-Commit-ID: 1XHkvz4aWxB
2017-02-03 15:16:50 +08:00
JW Wang 64133634b4 Bug 1336345. Part 1 - register shutdown blocker only once when the 1st MediaDecoder is created. r=gerald
MozReview-Commit-ID: 80DEZEEhm9E
2017-02-03 15:12:22 +08:00
Phil Ringnalda 62ed730da7 Backed out 2 changesets (bug 1336345) for gtest timeouts and crashes in test_data_protocol_registration.js
CLOSED TREE

Backed out changeset c4247e22a8ff (bug 1336345)
Backed out changeset 05e8e7d0f430 (bug 1336345)
2017-02-05 20:40:19 -08:00
JW Wang 832f21a253 Bug 1336345. Part 2 - some code cleanup. r=gerald
MozReview-Commit-ID: 1XHkvz4aWxB
2017-02-03 15:16:50 +08:00
JW Wang 2dae145949 Bug 1336345. Part 1 - register shutdown blocker on startup. r=gerald
MozReview-Commit-ID: 80DEZEEhm9E
2017-02-03 15:12:22 +08:00
Andrew McCreight 209d4ee048 Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
Nathan Froyd f2d50c26f4 Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange 2016-12-12 08:45:46 -05:00
Andrew McCreight 2f93d6e48d Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj 2016-12-12 07:58:33 -05:00
JW Wang 01554e280e Bug 1320346 - dump |rv| when AddBlocker() fails to get more debugging info. r=cpearce
MozReview-Commit-ID: LA3uPvdKCU5
2016-11-29 10:38:32 +08:00
Carsten "Tomcat" Book 5e21800216 Backed out changeset 2e51142370f3 (bug 1320346) for bustage 2016-11-29 11:11:03 +01:00
JW Wang fd70b3521b Bug 1320346 - dump |rv| when AddBlocker() fails to get more debugging info. r=cpearce
MozReview-Commit-ID: LA3uPvdKCU5
2016-11-29 10:38:32 +08:00
JW Wang fa1920a2bb Bug 1289649 - HTMLMediaElement should clear mDecoder when XPCOM shutdown begins. r=gerald
MozReview-Commit-ID: A3ECReCgiD7
2016-07-27 10:26:21 +08:00
Andrew McCreight 4556cffe24 Bug 1276383 - Add nsIAsyncShutdown.xpcomWillShutdown and use it in WebRTC. r=Yoric,jib 2016-06-01 15:05:53 -07:00
JW Wang 7335cb3241 Bug 1274522. Part 2 - fix comments. r=gerald.
MozReview-Commit-ID: J7YKTy1m7PU
2016-05-24 11:47:23 +08:00
JW Wang a92c12ba82 Bug 1274522. Part 1 - Use AsyncShutdown API in MediaShutdownManager. r=gerald.
MozReview-Commit-ID: 4hMS188FBdp
2016-05-20 17:17:40 +08:00
JW Wang 29ec257f7d Bug 1267933 - rewrite the shutdown sequence of MediaShutdownManager. r=jya,gerald.
MozReview-Commit-ID: 8n7JlXOby0z
2016-05-04 16:13:25 +08:00
JW Wang dc8fab1b06 Bug 1267936 - make a stronger assertion to catch that MediaDecoder is created when MediaShutdownManager::Shutdown() begins. r=jya.
MozReview-Commit-ID: K3OdjMFGEUF
2016-04-29 10:18:35 +08:00
Jean-Yves Avenard 91746e1b5f Bug 1207220: Ensure MediaShutdownManager waits until all MediaDecoder have completed their shutdown. r=cpearce
XPCOM when shutting down expects all tasks to be run synchronously. As such, we must ensure that the remaining MediaDecoder are shut down before continuing on the next task.
In particular destroying gfxPlatforms must only ever happen after, as it is possible for the MediaDecoderReader to make use of gfx resources during shutdown.
2016-01-05 11:55:50 +11:00
sajitk 13171aa66e Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-15 14:49:01 +01:00
Wes Kocher 9ec1c7554a Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE 2015-11-11 09:36:56 -08:00
sajitk 47326a1fc0 Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-11 06:52:00 +01:00
Bobby Holley f796c43e95 Bug 1190496 - Do shutdown on xpcom-shutdown-threads. r=cpearce
This happens after xpcom-shutdown, and is the notification we're supposed to
listen for to shutdown off-main-thread event queues.
2015-08-04 14:00:45 -07:00
Bobby Holley 15270de6a5 Bug 1190496 - Namespace the SharedThreadPool.h include. r=cpearce 2015-08-04 14:00:25 -07:00
Birunthan Mohanathas 7e09bd91f3 Bug 1182979 - Part 4: Use nsTHashtable::Iterator in MediaShutdownManager. r=cpearce 2015-07-16 10:59:54 -07:00
Bobby Holley cc6a7fada2 Bug 1177282 - Create and destroy static SharedThreadPool state at startup/shutdown. r=cpearce 2015-06-30 02:13:04 -07:00
Eric Rahm 900b3ebc4d Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Carsten "Tomcat" Book 89becff57d Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)
2015-06-02 13:05:56 +02:00
Eric Rahm f5003d5120 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Wes Kocher 2a7ed059f1 Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm 0baf91e33f Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm 5b59cf4e0b Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Eric Rahm ddc8ac650b Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Eric Rahm 06d4f75aa8 Bug 1163201 - Part 1: Remove instances of #ifdef PR_LOGGING in dom/. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:23 -07:00
Birunthan Mohanathas 417b400d55 Bug 946065 - Part 10: Move content/media/ to dom/. r=peterv 2014-10-25 20:24:36 +03:00