From 95284c8279482217ed642197ae20e64a5fee47a8 Mon Sep 17 00:00:00 2001 From: JW Wang Date: Mon, 19 Jun 2017 14:27:58 +0800 Subject: [PATCH] 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 --- dom/media/MediaDecoder.cpp | 6 +++--- dom/media/MediaDecoder.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index 6954a5b8a740..cbcc4b538e42 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -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 diff --git a/dom/media/MediaDecoder.h b/dom/media/MediaDecoder.h index 32f0e5e0bfa2..cc6487433eb2 100644 --- a/dom/media/MediaDecoder.h +++ b/dom/media/MediaDecoder.h @@ -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();