зеркало из https://github.com/mozilla/gecko-dev.git
Bug 999496 - Move AudioData::SizeOfIncludingThis to MediaData.cpp. r=kinetik
This commit is contained in:
Родитель
5b1b3f4f0c
Коммит
f6bc3ab1c4
|
@ -38,6 +38,16 @@ AudioData::EnsureAudioBuffer()
|
|||
}
|
||||
}
|
||||
|
||||
size_t
|
||||
AudioData::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
|
||||
{
|
||||
size_t size = aMallocSizeOf(this) + aMallocSizeOf(mAudioData);
|
||||
if (mAudioBuffer) {
|
||||
size += mAudioBuffer->SizeOfIncludingThis(aMallocSizeOf);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
static bool
|
||||
ValidatePlane(const VideoData::YCbCrBuffer::Plane& aPlane)
|
||||
{
|
||||
|
|
|
@ -80,13 +80,7 @@ public:
|
|||
MOZ_COUNT_DTOR(AudioData);
|
||||
}
|
||||
|
||||
size_t SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const {
|
||||
size_t size = aMallocSizeOf(this) + aMallocSizeOf(mAudioData);
|
||||
if (mAudioBuffer) {
|
||||
size += mAudioBuffer->SizeOfIncludingThis(aMallocSizeOf);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
size_t SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const;
|
||||
|
||||
// If mAudioBuffer is null, creates it from mAudioData.
|
||||
void EnsureAudioBuffer();
|
||||
|
|
Загрузка…
Ссылка в новой задаче