Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5aa7aa9 authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "More power savings: No need to keep a history of outgoing packets" into jb-mr1-dev

parents 16461dca 887070db
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -264,8 +264,10 @@ WifiDisplaySource::PlaybackSession::PlaybackSession(
      mNumRTPSent(0),
      mNumRTPOctetsSent(0),
      mNumSRsSent(0),
      mSendSRPending(false),
      mHistoryLength(0)
      mSendSRPending(false)
#if ENABLE_RETRANSMISSION
      ,mHistoryLength(0)
#endif
#if TRACK_BANDWIDTH
      ,mFirstPacketTimeUs(-1ll)
      ,mTotalBytesSent(0ll)
@@ -1126,7 +1128,9 @@ ssize_t WifiDisplaySource::PlaybackSession::appendTSData(
#endif
        }

#if ENABLE_RETRANSMISSION
        mTSQueue->setInt32Data(mRTPSeqNo - 1);

        mHistory.push_back(mTSQueue);
        ++mHistoryLength;

@@ -1138,6 +1142,7 @@ ssize_t WifiDisplaySource::PlaybackSession::appendTSData(
        } else {
            mTSQueue = new ABuffer(12 + kMaxNumTSPacketsPerRTPPacket * 188);
        }
#endif

        mTSQueue->setRange(0, 12);
    }
+2 −0
Original line number Diff line number Diff line
@@ -161,8 +161,10 @@ private:

    bool mSendSRPending;

#if ENABLE_RETRANSMISSION
    List<sp<ABuffer> > mHistory;
    size_t mHistoryLength;
#endif

#if TRACK_BANDWIDTH
    int64_t mFirstPacketTimeUs;