Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: media/cast/logging/proto/proto_utils.cc

Issue 164253003: Cast: Split kDuplicatePacketReceived into separate events for audio/video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/logging/logging_defines.cc ('k') | media/cast/logging/proto/raw_events.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/logging/proto/proto_utils.h" 5 #include "media/cast/logging/proto/proto_utils.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 #define TO_PROTO_ENUM(from_enum, to_enum) \ 9 #define TO_PROTO_ENUM(from_enum, to_enum) \
10 case from_enum: \ 10 case from_enum: \
(...skipping 21 matching lines...) Expand all
32 TO_PROTO_ENUM(kVideoFrameReceived, VIEDO_FRAME_RECEIVED); 32 TO_PROTO_ENUM(kVideoFrameReceived, VIEDO_FRAME_RECEIVED);
33 TO_PROTO_ENUM(kVideoFrameSentToEncoder, VIDEO_FRAME_SENT_TO_ENCODER); 33 TO_PROTO_ENUM(kVideoFrameSentToEncoder, VIDEO_FRAME_SENT_TO_ENCODER);
34 TO_PROTO_ENUM(kVideoFrameEncoded, VIDEO_FRAME_ENCODED); 34 TO_PROTO_ENUM(kVideoFrameEncoded, VIDEO_FRAME_ENCODED);
35 TO_PROTO_ENUM(kVideoFrameDecoded, VIDEO_FRAME_DECODED); 35 TO_PROTO_ENUM(kVideoFrameDecoded, VIDEO_FRAME_DECODED);
36 TO_PROTO_ENUM(kVideoRenderDelay, VIDEO_RENDER_DELAY); 36 TO_PROTO_ENUM(kVideoRenderDelay, VIDEO_RENDER_DELAY);
37 TO_PROTO_ENUM(kPacketSentToPacer, PACKET_SENT_TO_PACER); 37 TO_PROTO_ENUM(kPacketSentToPacer, PACKET_SENT_TO_PACER);
38 TO_PROTO_ENUM(kPacketSentToNetwork, PACKET_SENT_TO_NETWORK); 38 TO_PROTO_ENUM(kPacketSentToNetwork, PACKET_SENT_TO_NETWORK);
39 TO_PROTO_ENUM(kPacketRetransmitted, PACKET_RETRANSMITTED); 39 TO_PROTO_ENUM(kPacketRetransmitted, PACKET_RETRANSMITTED);
40 TO_PROTO_ENUM(kAudioPacketReceived, AUDIO_PACKET_RECEIVED); 40 TO_PROTO_ENUM(kAudioPacketReceived, AUDIO_PACKET_RECEIVED);
41 TO_PROTO_ENUM(kVideoPacketReceived, VIDEO_PACKET_RECEIVED); 41 TO_PROTO_ENUM(kVideoPacketReceived, VIDEO_PACKET_RECEIVED);
42 TO_PROTO_ENUM(kDuplicatePacketReceived, DUPLICATE_PACKET_RECEIVED); 42 TO_PROTO_ENUM(kDuplicateAudioPacketReceived,
43 DUPLICATE_AUDIO_PACKET_RECEIVED);
44 TO_PROTO_ENUM(kDuplicateVideoPacketReceived,
45 DUPLICATE_VIDEO_PACKET_RECEIVED);
43 case kNumOfLoggingEvents: 46 case kNumOfLoggingEvents:
44 NOTREACHED(); 47 NOTREACHED();
45 return media::cast::proto::UNKNOWN; 48 return media::cast::proto::UNKNOWN;
46 } 49 }
47 NOTREACHED(); 50 NOTREACHED();
48 return media::cast::proto::UNKNOWN; 51 return media::cast::proto::UNKNOWN;
49 } 52 }
50 53
51 } // namespace cast 54 } // namespace cast
52 } // namespace media 55 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/logging_defines.cc ('k') | media/cast/logging/proto/raw_events.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698