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

Side by Side Diff: media/cast/logging/logging_defines.cc

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 4 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/logging_defines.h" 5 #include "media/cast/logging/logging_defines.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 #define ENUM_TO_STRING(enum) \ 9 #define ENUM_TO_STRING(enum) \
10 case enum: \ 10 case enum: \
(...skipping 15 matching lines...) Expand all
26 ENUM_TO_STRING(PACKET_SENT_TO_NETWORK); 26 ENUM_TO_STRING(PACKET_SENT_TO_NETWORK);
27 ENUM_TO_STRING(PACKET_RETRANSMITTED); 27 ENUM_TO_STRING(PACKET_RETRANSMITTED);
28 ENUM_TO_STRING(PACKET_RTX_REJECTED); 28 ENUM_TO_STRING(PACKET_RTX_REJECTED);
29 ENUM_TO_STRING(PACKET_RECEIVED); 29 ENUM_TO_STRING(PACKET_RECEIVED);
30 } 30 }
31 NOTREACHED(); 31 NOTREACHED();
32 return ""; 32 return "";
33 } 33 }
34 34
35 FrameEvent::FrameEvent() 35 FrameEvent::FrameEvent()
36 : rtp_timestamp(0u), frame_id(kFrameIdUnknown), width(0), height(0), 36 : frame_id(kFrameIdUnknown),
37 size(0u), type(UNKNOWN), media_type(UNKNOWN_EVENT), key_frame(false), 37 width(0),
38 target_bitrate(0), encoder_cpu_utilization(-1.0), 38 height(0),
39 size(0u),
40 type(UNKNOWN),
41 media_type(UNKNOWN_EVENT),
42 key_frame(false),
43 target_bitrate(0),
44 encoder_cpu_utilization(-1.0),
39 idealized_bitrate_utilization(-1.0) {} 45 idealized_bitrate_utilization(-1.0) {}
40 FrameEvent::~FrameEvent() {} 46 FrameEvent::~FrameEvent() {}
41 47
42 PacketEvent::PacketEvent() 48 PacketEvent::PacketEvent()
43 : rtp_timestamp(0), 49 : frame_id(kFrameIdUnknown),
44 frame_id(kFrameIdUnknown),
45 max_packet_id(0), 50 max_packet_id(0),
46 packet_id(0), 51 packet_id(0),
47 size(0), 52 size(0),
48 type(UNKNOWN), 53 type(UNKNOWN),
49 media_type(UNKNOWN_EVENT) {} 54 media_type(UNKNOWN_EVENT) {}
50 PacketEvent::~PacketEvent() {} 55 PacketEvent::~PacketEvent() {}
51 56
52 } // namespace cast 57 } // namespace cast
53 } // namespace media 58 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/logging_defines.h ('k') | media/cast/logging/receiver_time_offset_estimator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698