mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Backed out changeset 22641351f11f (bug 1245463)
This commit is contained in:
parent
6244cfb10e
commit
9f354ccec0
@ -487,6 +487,20 @@ MediaSource::NotifyEvicted(double aStart, double aEnd)
|
||||
mSourceBuffers->Evict(aStart, aEnd);
|
||||
}
|
||||
|
||||
#if defined(DEBUG)
|
||||
void
|
||||
MediaSource::Dump(const char* aPath)
|
||||
{
|
||||
char buf[255];
|
||||
PR_snprintf(buf, sizeof(buf), "%s/mediasource-%p", aPath, this);
|
||||
PR_MkDir(buf, 0700);
|
||||
|
||||
if (mSourceBuffers) {
|
||||
mSourceBuffers->Dump(buf);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
MediaSource::GetMozDebugReaderData(nsAString& aString)
|
||||
{
|
||||
|
@ -100,6 +100,12 @@ public:
|
||||
// that were evicted are provided.
|
||||
void NotifyEvicted(double aStart, double aEnd);
|
||||
|
||||
#if defined(DEBUG)
|
||||
// Dump the contents of each SourceBuffer to a series of files under aPath.
|
||||
// aPath must exist. Debug only, invoke from your favourite debugger.
|
||||
void Dump(const char* aPath);
|
||||
#endif
|
||||
|
||||
// Returns a string describing the state of the MediaSource internal
|
||||
// buffered data. Used for debugging purposes.
|
||||
void GetMozDebugReaderData(nsAString& aString);
|
||||
|
@ -612,6 +612,16 @@ SourceBuffer::Evict(double aStart, double aEnd)
|
||||
mContentManager->EvictBefore(TimeUnit::FromSeconds(evictTime));
|
||||
}
|
||||
|
||||
#if defined(DEBUG)
|
||||
void
|
||||
SourceBuffer::Dump(const char* aPath)
|
||||
{
|
||||
if (mContentManager) {
|
||||
mContentManager->Dump(aPath);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(SourceBuffer)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(SourceBuffer)
|
||||
|
@ -213,6 +213,10 @@ public:
|
||||
return mActive;
|
||||
}
|
||||
|
||||
#if defined(DEBUG)
|
||||
void Dump(const char* aPath);
|
||||
#endif
|
||||
|
||||
private:
|
||||
~SourceBuffer();
|
||||
|
||||
|
@ -176,6 +176,16 @@ SourceBufferList::QueueAsyncSimpleEvent(const char* aName)
|
||||
NS_DispatchToMainThread(event);
|
||||
}
|
||||
|
||||
#if defined(DEBUG)
|
||||
void
|
||||
SourceBufferList::Dump(const char* aPath)
|
||||
{
|
||||
for (uint32_t i = 0; i < mSourceBuffers.Length(); ++i) {
|
||||
mSourceBuffers[i]->Dump(aPath);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
SourceBufferList::SourceBufferList(MediaSource* aMediaSource)
|
||||
: DOMEventTargetHelper(aMediaSource->GetParentObject())
|
||||
, mMediaSource(aMediaSource)
|
||||
|
@ -84,6 +84,10 @@ public:
|
||||
// No event is fired and no action is performed on the sourcebuffers.
|
||||
void ClearSimple();
|
||||
|
||||
#if defined(DEBUG)
|
||||
void Dump(const char* aPath);
|
||||
#endif
|
||||
|
||||
private:
|
||||
~SourceBufferList();
|
||||
|
||||
|
@ -296,6 +296,14 @@ TrackBuffersManager::Detach()
|
||||
GetTaskQueue()->Dispatch(task.forget());
|
||||
}
|
||||
|
||||
#if defined(DEBUG)
|
||||
void
|
||||
TrackBuffersManager::Dump(const char* aPath)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
TrackBuffersManager::CompleteResetParserState()
|
||||
{
|
||||
|
@ -96,6 +96,10 @@ public:
|
||||
bool& aError);
|
||||
media::TimeUnit GetNextRandomAccessPoint(TrackInfo::TrackType aTrack);
|
||||
|
||||
#if defined(DEBUG)
|
||||
void Dump(const char* aPath) override;
|
||||
#endif
|
||||
|
||||
void AddSizeOfResources(MediaSourceDecoder::ResourceSizes* aSizes);
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user