| Index: remoting/host/client_connection.cc
|
| diff --git a/remoting/host/client_connection.cc b/remoting/host/client_connection.cc
|
| index b6e875998c615856b40bd13e162720ff09a62096..2cbbed647499b91373fb40abb6ec9bfd0eb64d78 100644
|
| --- a/remoting/host/client_connection.cc
|
| +++ b/remoting/host/client_connection.cc
|
| @@ -115,6 +115,18 @@ void ClientConnection::SendEndUpdateStreamMessage() {
|
| update_stream_size_ = 0;
|
| }
|
|
|
| +void ClientConnection::MarkEndOfUpdate() {
|
| + // This is some logic to help calculate the average update stream size.
|
| + size_in_queue_ += update_stream_size_;
|
| + size_queue_.push_back(update_stream_size_);
|
| + if (size_queue_.size() > kAverageUpdateStream) {
|
| + size_in_queue_ -= size_queue_.front();
|
| + size_queue_.pop_front();
|
| + DCHECK_GE(size_in_queue_, 0);
|
| + }
|
| + update_stream_size_ = 0;
|
| +}
|
| +
|
| int ClientConnection::GetPendingUpdateStreamMessages() {
|
| DCHECK_EQ(loop_, MessageLoop::current());
|
|
|
|
|