зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1374184. P3 - rename NotifyDownloadProgressed to DownloadProgressed for it is used internally by MediaDecoder and fix the comment. r=gerald
MozReview-Commit-ID: 6nUEjvZ73ko --HG-- extra : rebase_source : 55d6a5b385258aa080974574a2bfc2ef722d6e00 extra : source : 9a5d941f74815acf189bdb4f85578a2634a632ae
This commit is contained in:
Родитель
ca683c8fb9
Коммит
95284c8279
|
@ -204,7 +204,7 @@ MediaDecoder::ResourceCallback::NotifyDataArrived()
|
|||
return;
|
||||
}
|
||||
|
||||
mDecoder->NotifyDownloadProgressed();
|
||||
mDecoder->DownloadProgressed();
|
||||
|
||||
if (mTimerArmed) {
|
||||
return;
|
||||
|
@ -1045,7 +1045,7 @@ MediaDecoder::ShouldThrottleDownload()
|
|||
}
|
||||
|
||||
void
|
||||
MediaDecoder::NotifyDownloadProgressed()
|
||||
MediaDecoder::DownloadProgressed()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_DIAGNOSTIC_ASSERT(!IsShutdown());
|
||||
|
@ -1551,7 +1551,7 @@ void
|
|||
MediaDecoder::NotifyDataArrived()
|
||||
{
|
||||
NotifyDataArrivedInternal();
|
||||
NotifyDownloadProgressed();
|
||||
DownloadProgressed();
|
||||
}
|
||||
|
||||
// Provide access to the state machine object
|
||||
|
|
|
@ -587,9 +587,9 @@ protected:
|
|||
private:
|
||||
void NotifyDataArrivedInternal();
|
||||
|
||||
// Called by MediaResource when some data has been received.
|
||||
// Called to recompute playback rate and notify 'progress' event.
|
||||
// Call on the main thread only.
|
||||
void NotifyDownloadProgressed();
|
||||
void DownloadProgressed();
|
||||
|
||||
nsCString GetDebugInfo();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче