Bug 1480498 - P2 - renaming RTCRTPStreamStats in the WebRTCGlobals r=mjf
authorNico Grunbaum <na-g@nostrum.com>
Fri, 03 Aug 2018 17:41:30 +0000
changeset 430265 308ac9e24b442b9a3d3a328a2213d3b02bf685b1
parent 430264 6f781af2970883b1872b0363409690bc9a5f63e8
child 430266 fb85f9a81670722ca0de657cdad944b342585a79
push id34396
push useraiakab@mozilla.com
push dateTue, 07 Aug 2018 09:35:06 +0000
treeherdermozilla-central@ab8293506be2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmjf
bugs1480498
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1480498 - P2 - renaming RTCRTPStreamStats in the WebRTCGlobals r=mjf Renaming RTCRTPStreamStats in the WebRTCGlobals. Differential Revision: https://phabricator.services.mozilla.com/D2683
dom/media/webrtc/WebrtcGlobal.h
--- a/dom/media/webrtc/WebrtcGlobal.h
+++ b/dom/media/webrtc/WebrtcGlobal.h
@@ -275,36 +275,36 @@ struct ParamTraits<mozilla::dom::RTCIceC
         !ReadRTCStats(aMsg, aIter, aResult)) {
       return false;
     }
 
     return true;
   }
 };
 
-static void WriteRTCRTPStreamStats(
+static void WriteRTCRtpStreamStats(
               Message* aMsg,
-              const mozilla::dom::RTCRTPStreamStats& aParam)
+              const mozilla::dom::RTCRtpStreamStats& aParam)
 {
     WriteParam(aMsg, aParam.mBitrateMean);
     WriteParam(aMsg, aParam.mBitrateStdDev);
     WriteParam(aMsg, aParam.mCodecId);
     WriteParam(aMsg, aParam.mFramerateMean);
     WriteParam(aMsg, aParam.mFramerateStdDev);
     WriteParam(aMsg, aParam.mIsRemote);
     WriteParam(aMsg, aParam.mMediaTrackId);
     WriteParam(aMsg, aParam.mMediaType);
     WriteParam(aMsg, aParam.mRemoteId);
     WriteParam(aMsg, aParam.mSsrc);
     WriteParam(aMsg, aParam.mTransportId);
 }
 
-static bool ReadRTCRTPStreamStats(
+static bool ReadRTCRtpStreamStats(
               const Message* aMsg, PickleIterator* aIter,
-              mozilla::dom::RTCRTPStreamStats* aResult)
+              mozilla::dom::RTCRtpStreamStats* aResult)
 {
   if (!ReadParam(aMsg, aIter, &(aResult->mBitrateMean)) ||
       !ReadParam(aMsg, aIter, &(aResult->mBitrateStdDev)) ||
       !ReadParam(aMsg, aIter, &(aResult->mCodecId)) ||
       !ReadParam(aMsg, aIter, &(aResult->mFramerateMean)) ||
       !ReadParam(aMsg, aIter, &(aResult->mFramerateStdDev)) ||
       !ReadParam(aMsg, aIter, &(aResult->mIsRemote)) ||
       !ReadParam(aMsg, aIter, &(aResult->mMediaTrackId)) ||
@@ -329,32 +329,32 @@ struct ParamTraits<mozilla::dom::RTCInbo
     WriteParam(aMsg, aParam.mDiscardedPackets);
     WriteParam(aMsg, aParam.mFramesDecoded);
     WriteParam(aMsg, aParam.mJitter);
     WriteParam(aMsg, aParam.mMozAvSyncDelay);
     WriteParam(aMsg, aParam.mMozJitterBufferDelay);
     WriteParam(aMsg, aParam.mRoundTripTime);
     WriteParam(aMsg, aParam.mPacketsLost);
     WriteParam(aMsg, aParam.mPacketsReceived);
-    WriteRTCRTPStreamStats(aMsg, aParam);
+    WriteRTCRtpStreamStats(aMsg, aParam);
     WriteRTCStats(aMsg, aParam);
   }
 
   static bool Read(const Message* aMsg, PickleIterator* aIter, paramType* aResult)
   {
     if (!ReadParam(aMsg, aIter, &(aResult->mBytesReceived)) ||
         !ReadParam(aMsg, aIter, &(aResult->mDiscardedPackets)) ||
         !ReadParam(aMsg, aIter, &(aResult->mFramesDecoded)) ||
         !ReadParam(aMsg, aIter, &(aResult->mJitter)) ||
         !ReadParam(aMsg, aIter, &(aResult->mMozAvSyncDelay)) ||
         !ReadParam(aMsg, aIter, &(aResult->mMozJitterBufferDelay)) ||
         !ReadParam(aMsg, aIter, &(aResult->mRoundTripTime)) ||
         !ReadParam(aMsg, aIter, &(aResult->mPacketsLost)) ||
         !ReadParam(aMsg, aIter, &(aResult->mPacketsReceived)) ||
-        !ReadRTCRTPStreamStats(aMsg, aIter, aResult) ||
+        !ReadRTCRtpStreamStats(aMsg, aIter, aResult) ||
         !ReadRTCStats(aMsg, aIter, aResult)) {
       return false;
     }
 
     return true;
   }
 };
 
@@ -368,31 +368,31 @@ struct ParamTraits<mozilla::dom::RTCOutb
     WriteParam(aMsg, aParam.mBytesSent);
     WriteParam(aMsg, aParam.mDroppedFrames);
     WriteParam(aMsg, aParam.mPacketsSent);
     WriteParam(aMsg, aParam.mTargetBitrate);
     WriteParam(aMsg, aParam.mFramesEncoded);
     WriteParam(aMsg, aParam.mFirCount);
     WriteParam(aMsg, aParam.mNackCount);
     WriteParam(aMsg, aParam.mPliCount);
-    WriteRTCRTPStreamStats(aMsg, aParam);
+    WriteRTCRtpStreamStats(aMsg, aParam);
     WriteRTCStats(aMsg, aParam);
   }
 
   static bool Read(const Message* aMsg, PickleIterator* aIter, paramType* aResult)
   {
     if (!ReadParam(aMsg, aIter, &(aResult->mBytesSent)) ||
         !ReadParam(aMsg, aIter, &(aResult->mDroppedFrames)) ||
         !ReadParam(aMsg, aIter, &(aResult->mPacketsSent)) ||
         !ReadParam(aMsg, aIter, &(aResult->mTargetBitrate)) ||
         !ReadParam(aMsg, aIter, &(aResult->mFramesEncoded)) ||
         !ReadParam(aMsg, aIter, &(aResult->mFirCount)) ||
         !ReadParam(aMsg, aIter, &(aResult->mNackCount)) ||
         !ReadParam(aMsg, aIter, &(aResult->mPliCount)) ||
-        !ReadRTCRTPStreamStats(aMsg, aIter, aResult) ||
+        !ReadRTCRtpStreamStats(aMsg, aIter, aResult) ||
         !ReadRTCStats(aMsg, aIter, aResult)) {
       return false;
     }
 
     return true;
   }
 };