diff options
author | hubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-20 18:23:15 +0000 |
---|---|---|
committer | hubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-20 18:23:15 +0000 |
commit | 3336167db90bf5e01985c4ae11fbd67103a36fdd (patch) | |
tree | 84cb3aed43039e9781310376f446d6e7698edd10 /media/cast/logging | |
parent | d85a27a426c04b529e7d2109b33e3d3c1794a9eb (diff) | |
download | chromium_src-3336167db90bf5e01985c4ae11fbd67103a36fdd.zip chromium_src-3336167db90bf5e01985c4ae11fbd67103a36fdd.tar.gz chromium_src-3336167db90bf5e01985c4ae11fbd67103a36fdd.tar.bz2 |
Cast: Avoid retransmit if we sent the same packet recently (less than RTT)
When transmitting 4Mbit over the "bad" udp_proxy profile, this reduces the
amount of data sent from 12Mbit/s to 7Mbit/s, and seems to make it able to
actually send more frames across the wire and recover faster.
Review URL: https://codereview.chromium.org/343523005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278774 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/logging')
-rw-r--r-- | media/cast/logging/logging_defines.cc | 1 | ||||
-rw-r--r-- | media/cast/logging/logging_defines.h | 1 | ||||
-rw-r--r-- | media/cast/logging/proto/proto_utils.cc | 1 | ||||
-rw-r--r-- | media/cast/logging/proto/raw_events.proto | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/media/cast/logging/logging_defines.cc b/media/cast/logging/logging_defines.cc index d0dd5c8..05ceeb9 100644 --- a/media/cast/logging/logging_defines.cc +++ b/media/cast/logging/logging_defines.cc @@ -25,6 +25,7 @@ const char* CastLoggingToString(CastLoggingEvent event) { ENUM_TO_STRING(FRAME_PLAYOUT); ENUM_TO_STRING(PACKET_SENT_TO_NETWORK); ENUM_TO_STRING(PACKET_RETRANSMITTED); + ENUM_TO_STRING(PACKET_RTX_REJECTED); ENUM_TO_STRING(PACKET_RECEIVED); } NOTREACHED(); diff --git a/media/cast/logging/logging_defines.h b/media/cast/logging/logging_defines.h index b3f3841..021a3c9 100644 --- a/media/cast/logging/logging_defines.h +++ b/media/cast/logging/logging_defines.h @@ -32,6 +32,7 @@ enum CastLoggingEvent { // Sender side packet events. PACKET_SENT_TO_NETWORK, PACKET_RETRANSMITTED, + PACKET_RTX_REJECTED, // Receiver side packet events. PACKET_RECEIVED, kNumOfLoggingEvents = PACKET_RECEIVED diff --git a/media/cast/logging/proto/proto_utils.cc b/media/cast/logging/proto/proto_utils.cc index 1f05616..03251e6 100644 --- a/media/cast/logging/proto/proto_utils.cc +++ b/media/cast/logging/proto/proto_utils.cc @@ -25,6 +25,7 @@ proto::EventType ToProtoEventType(CastLoggingEvent event) { TO_PROTO_ENUM(FRAME_PLAYOUT); TO_PROTO_ENUM(PACKET_SENT_TO_NETWORK); TO_PROTO_ENUM(PACKET_RETRANSMITTED); + TO_PROTO_ENUM(PACKET_RTX_REJECTED); TO_PROTO_ENUM(PACKET_RECEIVED); } NOTREACHED(); diff --git a/media/cast/logging/proto/raw_events.proto b/media/cast/logging/proto/raw_events.proto index 08bf53d..1d2c537 100644 --- a/media/cast/logging/proto/raw_events.proto +++ b/media/cast/logging/proto/raw_events.proto @@ -66,6 +66,7 @@ enum EventType { PACKET_SENT_TO_NETWORK = 36; PACKET_RETRANSMITTED = 37; PACKET_RECEIVED = 38; + PACKET_RTX_REJECTED = 39; } // Contains information independent of the stream that describes the system |