| Index: remoting/client/chromoting_client.cc
|
| diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
|
| index aee6df4c3638fe8b94b691e9e24b60bf0066acd9..bf1ad39a99ed105441041783205820727ea86edf 100644
|
| --- a/remoting/client/chromoting_client.cc
|
| +++ b/remoting/client/chromoting_client.cc
|
| @@ -92,6 +92,10 @@ void ChromotingClient::ClientDone() {
|
| }
|
| }
|
|
|
| +ChromotingStats* ChromotingClient::GetStats() {
|
| + return &stats_;
|
| +}
|
| +
|
| void ChromotingClient::Repaint() {
|
| if (message_loop() != MessageLoop::current()) {
|
| message_loop()->PostTask(
|
| @@ -125,6 +129,9 @@ void ChromotingClient::ProcessVideoPacket(const VideoPacket* packet,
|
| return;
|
| }
|
|
|
| + // Record size of the packet for statistics.
|
| + stats_.video_bandwidth()->Record(packet->data().size());
|
| +
|
| received_packets_.push_back(QueuedVideoPacket(packet, done));
|
| if (!packet_being_processed_)
|
| DispatchPacket();
|
|
|