Bug 1407810 - Use DDLogger in media stack - r=jwwang

Mostly-mechanical additions:
- Log constructions&destructions, usually by just inheriting from
  DecoderDoctorLifeLogger, otherwise with explicit log commands (for internal
  classes for which DecoderDoctorTraits can't be specialized),
- Log links between most objects, e.g.: Media element -> decoder -> state
  machine -> reader -> demuxer -> resource, etc.

And logging some important properties and events (JS events, duration change,
frames being decoded, etc.)

More will be added later on, from just converting MOZ_LOGs, and as needed.

MozReview-Commit-ID: KgNhHSz35t0
This commit is contained in:
Gerald Squelart
2017-10-10 17:55:27 +11:00
parent 67e08feaf5
commit 39c2b02fa1
85 changed files with 938 additions and 177 deletions

View File

@@ -48,10 +48,12 @@ HTMLVideoElement::HTMLVideoElement(already_AddRefed<NodeInfo>& aNodeInfo)
: HTMLMediaElement(aNodeInfo)
, mIsOrientationLocked(false)
{
DecoderDoctorLogger::LogConstruction(this);
}
HTMLVideoElement::~HTMLVideoElement()
{
DecoderDoctorLogger::LogDestruction(this);
}
nsresult HTMLVideoElement::GetVideoSize(nsIntSize* size)